[CMake] Cmake 2.2.2 with Visual Studio 6. .lib? .dll?

Daniel Tourde ted at foi.se
Tue Nov 29 10:38:04 EST 2005


Hello,

Thanks for your answer. I basically created a test project with Kdevelop 3.2.1 
under Linux. I slightly modified the CMakeLists.txt file according to the 
tips given by Alexander Neundorf and Filipe Sousa (see the few mails 
exchanged a few days ago, on the mailing list). Otherwise, I did not change 
anything. My idea is to prove the concept: Kdevelop project -> M$ VS6 via 
cmake 2.2.2.

If you want, I can send you the project in itself (two short C++ files, in 
fact). There is nothing strange: A library and a program written to use that 
library (the whole things producing a "Hello world!")

The dll gets built. I cannot give you much details, I am a Unixian, so to 
say... :) but I can assure you that there is no associated .lib.


		Daniel

> >...When VS tries to link a test program to the new
> >library it looks for a .lib that it does not find because there is .dll.
> >
> >How am I supposed to solve this problem?
>
> There should be an import lib built when the dll is built. If there
> isn't one, then there are probably no exports from that dll. In which
> case, there's no use linking to it. Something is wrong with the process
> that built the dll if the corresponding import lib is not there.
>
> How does the dll in question get built? (Or, if it's not built, how was
> it installed?) There should be a .lib file associated with the dll if
> it's intended for you to link exe's or other dll's to it...
>
> HTH,
> David

-- 
**********************************************************************
Daniel TOURDE                            E-mail : daniel.tourde at foi.se
                                            Tel : +46 (0)8-55 50 32 12
                                            Fax : +46 (0)8-55 50 30 68
                                       Cellular :  +46 (0)70-849 93 40
FOI, Swedish Defence Research Agency; Systemteknik
Dept. of Wind Energy and Aviation Environmental Research
SE-164 90 Stockholm, Sweden
**********************************************************************


More information about the CMake mailing list