我想在windows中编译这段代码? [英] I want to compile this code in windows?

查看:83
本文介绍了我想在windows中编译这段代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这页 http://sydney.edu.au/engineering/it/~jeff/khe / [ ^ ]

有高中时间表软件库,它是一个开源的ANSI C99软件库。

我安装Pelles C IDE来编译这段代码,因为Visual Studio不支持C99标准,但我也无法用PellesC编译代码。

问题

我可以编译这个用于Windows的代码?

I this page http://sydney.edu.au/engineering/it/~jeff/khe/[^]
There Software Library for High School Timetabling and it is an open source ANSI C99 software library.
I install "Pelles C IDE" to compile this code, because Visual studio not support C99 standards, but i can't compile code with PellesC also.
Question
Can I compile this sorce code for windows?

推荐答案

如果您可以使用Linux GCC进行编译,那么很有可能您可以使用MinGW进行编译,甚至可以使用Cygwin进行编译。

MinGW是一个在Windows下使用GCC和其他GNU工具的最小环境。 Cygwin更像是GNU-Linux的软件包发行版,它们都在Cygwin环境下运行。

获取和使用这些免费工具集的详细信息可以通过互联网搜索找到,但你在有几天工作很有可能设置好编译。



很明显你需要拨打电话,无论是或多或少努力将KHE源更改为使用Microsoft Visual C或让MinGW或Cygwin工作来构建它。
If you can compile with Linux GCC then there's a good chance you can compile using either MinGW or even more likely with Cygwin.
MinGW is a minimal environment to enable the use of GCC and other GNU tools under Windows. Cygwin is more like a GNU-Linux distro of packages which all run on Windows under a Cygwin environment.
Details of obtaining and using either of these free toolsets can be found by internet search but you're in for a few days work in all likelihood to get set up for compilation.

Clearly you need to make the call whether it's more or less effort to change the KHE source to work with Microsoft Visual C or get MinGW or Cygwin working to build it.


根据此 Wikipedia 页面:C99实施 [ ^ ] Pelles C 完全支持 C99 (请不要 KHE 页面没有提及 C99 标准)。你可能应该发布一些你得到的错误,以获得更好的帮助。
According to this Wikipedia page: C99 implementations[^] Pelles C fully supports C99 (please not in KHE page there is no mention of C99 standard). You probably should post some of the errors you're getting in order to obtain better help.


这篇关于我想在windows中编译这段代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆