[CMake] cmake and MINGW's ld.exe issue

William A. Hoffman billlist at nycap.rr.com
Fri Dec 23 08:17:14 EST 2005


At 04:01 AM 12/23/2005, D. Eimers wrote:

>> >"c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
>> > cannot find -lgtkmm-2.4.lib "
>> This looks like a bug in your CMakeList file.  When referring to a library,
>> you should either have the full path to the library: /path/to/libgtkmn-2.4,
>> or just gtkmn-2.4.  CMake will add the .lib when needed (when using visual
>> studio compilers)
>> 
>> How are you specifying gtkmn-2.4 in your CMakeList file?
>
>Yes, I am not adding the .lib part manually. 
>_____________________________________

Can you demonstrate the problem in a small project?
Can you show me the cmake code you are using?  Do you have a
gtkmn-2.4.a file?  MinGw can not link Microsoft .lib files.

-Bill




More information about the CMake mailing list