cygwin

Cygwin Gcc error while loading shared libraries?


I have instaled Cygwin after running MinGW for a while now. But when I try to compile the console gives me:

/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

What does this mean?


Solution

  • I have the same problem and I found the solution.

    According to the FAQ of Cygwin

    Q: Why is C:\cygwin\usr\bin invisible from windows?

    A: Because it does not really exist. In cygwin, /usr/bin is just a link to /bin.

    So trying to add "C:\cygwin\usr\bin" to PATH will be in vain.

    Add "C:\cygwin64\bin" to PATH instead. Hope this helps :)