Voguemaster wrote on 2003-07-03: > Hi all, > > For the life of me, I can't seem to find anything that will help me > write code that can compile under Linux AND Win32. Basically I want > to write a small network application (details later) that will be > cross platform. > The problem is very basic: Linux and Win32 have different include files > for some things and placing #include directives inside #ifdef doesn't > do the trick (it nullifies the #ifdef possibly ?????). > > I'm not sure how to go about this and I couldn't find anything useful > elsewhere! Most projects just have a *nix source tree and a Win32 > source tree (that I could see). > > I don't want to use autotools as this project is small, quiter small. > Any tips ?? > If all your app needs are network functions and you have a command-line interface, consider cygwin. You code for unix and cygwin will compile your program with zero changes for windows. The users won't need a full-blown cygwin installations; for most simple cases just distributing a single cygwin DLL will your exe will be enough.
-- Beni Cherniavsky <[EMAIL PROTECTED]> "Reading the documentation I felt like a kid in a toy shop." -- Phil Thompson on Python's standard library ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]