"Khookie" <ch********@gmail.comwrote in message
news:48**********************************@s12g2000 prg.googlegroups.com...
I'm required to write an app that can compile on both Windows (cl/
nmake) & Linux (gcc/make) targets, so I was wondering whether anyone
has any guidelines on how to do it properly.
Even pointing me to existing projects on the net would be very
helpful.
beyond separating code into OS dependent and independent parts, be sure to
make Makefile's for the respective targets.
ideally, one makes the OS independent bits as general as possible, with the
OS dependent parts following a hopefully uniform interface. my personal
advice is to avoid relying too heavily on libraries, as many libraries will
tend to exist on one arch but not on others, ...
I will recommend staying well clear of the autoconf/configure horror so
popular on linux.
cmake may be useful here (I have heard some good things about this at least,
but have not used it personally...).
....
Thanks in advance
Chris