[CMake] implib option for linker on Win32
dohadwala, moiz
dohadwala_moiz at emc.com
Thu Aug 4 01:49:56 EDT 2005
Brad,
Actually, __declspec(dllexport) tags are not necessary to export symbols,
these can be specified in an external .def file.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html
/_core_.2f.implib.asp explains this.
Cmake does not support options 2 or 3. I think it should and I believe it
shouldn't be to hard to do it. But it is easier for me to say ;-).
-Moiz
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Monday, August 01, 2005 6:24 AM
To: dohadwala, moiz
Cc: cmake at cmake.org
Subject: Re: [CMake] implib option for linker on Win32
dohadwala, moiz wrote:
> I am trying to create a shared library on windows. The cmake project
> creates the dll, but it does not create the import library. What
> options/commands should I provide to get the import library to be
generated?
You need to put __declspec(dllexport) tags in your source code to tell the
compiler/linker what symbols to export from the dll. By default nothing is
exported. This is not a CMake issue, it is just standard Windows DLL stuff.
-Brad
More information about the CMake
mailing list