Installing/compiling in Cygwin/MinGW - How to set the include “path”? (symbolic link?)

前端 未结 4 1253
梦如初夏
梦如初夏 2021-01-12 19:33

I have been trying to install/compile C libraries in Windows 7 using Cygwin and MinGW. However, I am getting errors like these during make:

sys/         


        
4条回答
  •  长情又很酷
    2021-01-12 20:20

    After much investigation, the problem turned out to be that:

    1. MinGW does not have sys/times.h.
    2. Cygwin has it, but my Cyqwin was using the gcc in my python directory, which is MinGW's gcc.

    This was discovered while trying to resolve another problem here:

    Cannot compile C code with #include in Cygwin

    So it turns out that my problem had nothing to do with the include path or making symbolic links, but rather, the gcc version/type was wrong. This fact eluded me because I was running a clean installation of Cygwin and didn't know that it would automatically use the MinGW's gcc in my Python folder.

提交回复
热议问题