From: Eli Z. <el...@gn...> - 2013-12-03 19:04:22
|
> Date: Tue, 03 Dec 2013 13:49:27 -0500 > From: Benjamin Redelings <ben...@du...> > > I'm trying to build plugins on windows that reference symbols in > the main application. I've been told that one way to do this is to > build an import lib for your exe file, and then link your modules > against the import lib to form DLLs. Is this recommended? Not just recommended, it's downright necessary. There's no other way Windows linkers will allow you to link your modules. > (1) How can I write a libtool rule to construct the import library? Just add -Wl,--out-implib=libbali-phy.dll.a to the link command-line switches. I don't know if libtool supports building import libraries for .exe programs, and even if it does, I don't know how to tell libtool to do that. |