g++ -o /cygdrive/d/temp/client.exe /cygdrive/d/temp/main.cpp -mno-cygwin
g++: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.
网上有人建议用i686-pc-cygwin-gcc/++-4.exe替换g++,我试了一下,还是一样的错误。
目前有个折中的方案,就是采用g++3而非4,于是运行/usr/bin/set-gcc-default-3.sh然后再编译,OK,通过。
No comments:
Post a Comment