Link against MinGW libraries
Maxim Fomin
maxim at maxim-fomin.ru
Wed Aug 22 09:16:24 PDT 2012
On Wednesday, 22 August 2012 at 14:56:40 UTC, Kai Meyer wrote:
> There's got to be a way to link against libraries generated by
> MinGW, right? I'm using CMake to create a very simple 1 method
> library. If I tell D to link against the .lib (simple ar
> archive), it complains that it's an invalid library. If I tell
> D to link against the .dll, it complains that there is no .lib.
>
> I seem to remember thinking that Microsoft tools create a .dll
> and a .lib for development libraries, and you link against the
> .lib but run against the .dll. I don't know how to make MinGW
> (or cmake for that matter) generate both the .dll and .lib. I
> seem to remember that other projects I've built with the Visual
> Studio compiler, I get .lib and .dll files for my shared
> libraries, and those seem to work.
>
> Any help would be appreciated.
Which D compiler are you using?
More information about the Digitalmars-d-learn
mailing list