Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Comments
ibrahim_ragab 16-Jun-13 16:21pm    
Hint: I can compile code in Linux("ubuntu")

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.
 
Share this answer
 
Comments
pasztorpisti 16-Jun-13 18:48pm    
+5, I would try these before other options.
ibrahim_ragab 18-Jun-13 3:37am    
Thanks Matthew.
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.
 
Share this answer
 
Comments
ibrahim_ragab 16-Jun-13 19:45pm    
if source code is ANSI C , is this mean that this code is cross Platforms?
this code depend on Posix threads in PDF documintation he say
"KHE uses Posix threads to implement solving in parallel (function KheParallelSolve from Section 12.1), so the compiler and linker commands need the -pthread flag. If you don’t have Posix threads, the makefile documents a workaround. The only difference will be that KheParallelSolve will do its solving sequentially rather than in parallel."
CPallini 17-Jun-13 1:02am    
So it is not the compiler.
You might use, as suggested in the other solution, gcc on Windows or the 'Makefile documented' workaround.
ibrahim_ragab 18-Jun-13 3:36am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900