[CMake] Linking Error with Visual Studio 2013 x64

Nils Gladitz nilsgladitz at gmail.com
Thu Apr 17 06:03:52 EDT 2014


On 17.04.2014 11:46, Romain Leguay wrote:
>
> I think I found a bug with CMake 2.8.12.2: I have on project with two 
> sub-folders: a SHARED library and an executable that use the library.
> When I generate the Visual Studio solution, my application want to 
> link with a static version of my library.
>
> I join you a very small project to illustrate this bug.
>

I haven't tried to build the project but I am guessing that the "static 
version" of the library is actually the import library:
http://en.wikipedia.org/wiki/Dynamic-link_library#Import_libraries

And that you are missing DLL exports e.g.:
     http://msdn.microsoft.com/en-us//library/a90k134d.aspx

Without any exports the linker does not create an import library for 
your DLL.

Nils


More information about the CMake mailing list