i make simple database-like software. work mysql/postgresql very, simple , different. should work on both windows , linux (just mysql/postgresql do). want in c++.
is there compiler can use, compile 1 code both platforms? or have use different code both platforms?
you can compile on windows using mingw windows , gcc on linux: mingw minimalist implementation of gcc windows. it's "the same compiler", it's wont produce same binary, because 1 windows, other linux.
it's better write portable , standard code, not rely on particular compiler. way, compile under platform , compilers. boost, qt, ace example cross-platform libraries use.
Comments
Post a Comment