[CMake] How to link against a .dll with cmake?

Andreas Pakulat apaku at gmx.de
Sun Jul 25 04:35:51 EDT 2010


On 25.07.10 00:57:14, John Drescher wrote:
> > mingw can link using a .dll
> >
> 
> I do not have much mingw experience but I have around 15 of windows
> and Visual Studio experience. With Visual Studio you absolutely do not
> link your application with .dlls. You use import libs with a .lib
> extension the same way you do with a static lib. This import lib is
> not a static lib however its much smaller. During the application load
> process .dlls linked using import libraries are automatically loaded.
> This is not the only way to use .dlls you can use them also without
> linking but there is much more work in that.

Same goes for mingw, but it has a way of extracting the import library
from a .dll, see
http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/existingDLL.html

Andreas

-- 
You are fairminded, just and loving.


More information about the CMake mailing list