1. If you are using C++, there is a library called ACE that provides a platform independant wrapper for TCP communications, as well as some shortcuts. You might want to check it out. I have never worked with it, but I heard it may be a bitch to compile.
2. In any case, if you are going to be creating more than the two platforms, you may want to consider including an autoconf script in your project. This makes it ever so much easier to tell the various minor differences apart.
Shachar
Voguemaster wrote:
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 ??
Thanks, Eli
-- Shachar Shemesh Open Source integration consultant Home page & resume - http://www.shemesh.biz/
================================================================= 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]
