开发者

target mingw with cygwin

I've tried building the gtest 1.5 library for MinGW

Using MSys to configure and then make results in a lot of errors, most about Win32API

On their website it says mingw is not supported but in the FAQ it is specified that a user managed to build it for mingw from cygwin configuring like this:

./configure CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin"

This configure fails for me when running a sanity check for the C++ preprocessor ... something about "/lib/cpp".

I've tried a cygwin install with only mingw-gcc4 (4.3.4) and a cygwin install with mingw-gcc4 (4.3.4) and cygwin's own gcc (~3.4.4)开发者_开发技巧.


Generally, the library could be smoothly configured and built with cygwin gcc (3.4.4) using the flags you have specified above. You should only validate that gcc-mingw, gcc-mingw-core & gcc-mingw-g++ packages are installed in cygwin. There is no need in mingw-gcc4

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜