
9 Jan
2011
9 Jan
'11
8:40 p.m.
My expectation of using boost on cygwin was that I would be able to exercise code as if I were on a unix platform. I was surprised by system/filesystem use of windows api on this platform.
It was usefull, at least on cygwin 1.5: On cygwin 1.5, with boost 1.43.0 I use -DBOOST_POSIX_API -DBOOST_POSIX_PATH when I want cygwin binary I use -DBOOST_WINDOWS_API when I want windows binary (g++-3 -mno-cygwin) On cygwin 1.7, there is now a real cross-compiler i686-w64-mingw32-g++. What would be the "official" way to cross-compile to windows? Frédéric