How to write with VC++ and convert the final code to gcc

  • Thread starter Thread starter write vc++ code with intetion to convert the final
  • Start date Start date
W

write vc++ code with intetion to convert the final

Hello,
I need to write a program in VC++. I would like to know
how can I write it in such a way that once I will finish
it, will be easy to convert it to gcc.
If you have any general guidenss or good references please
let me know.

Thank you in advance.
 
You should have no problems if you stick to using only the
standard library #includes (<string>, <map> etc.) and
don't touch MFC, ATL etc.

I'm in the middle of a cross-platform app and the code
compiles and runs without modification (none at all, just
a different Makefile) on both VC++7.1 and g++ (gcc)

Microsoft and g++ seem to have slightly different
preprocessors, but a little tweaking will easily sort that
out.
 
Back
Top