[CMake] How to link against a .dll with cmake?
andy fillebrown
andy.fillebrown at gmail.com
Sun Jul 25 05:18:22 EDT 2010
The documentation is not current. Mingw can now link directly to a
.dll. See the "direct linking to a dll" section here ...
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html
On Sun, Jul 25, 2010 at 4:35 AM, Andreas Pakulat <apaku at gmx.de> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list