Gerry Hickman replied to Rayne
20-Nov-09 05:13 PM
Hi,
You should be able to write cross-platform code with GCC. Visual Studio
is very much "Windows Only" and especially if you even think about using
the .NET framework.
However, if you only want to port one way, it is possible to compile
pure ANSI C code with standard libraries from *NIX to Windows and you
can compile such code inside Visual Studio. The main reason it does not
usually work, is because someone has used *NIX system calls in the C
code which Windows does not understand.
If you want a detailed answer, the best thing to do, is create a small
*NIX program in GCC, then add the source files to a new VS project, then
compile, then make a note of the errors, then post the source code here.
You'll get a quick answer as to why it did not work.
--
Gerry Hickman (London UK)