[Interest] Link Errors when Creating a Windows DLL containing Qt Widgets

Michael Jackson imikejackson at gmail.com
Mon May 14 18:17:16 CEST 2012


On May 14, 2012, at 11:54 AM, Till Oliver Knoll wrote:

> 2012/5/14 Mike Jackson <imikejackson at gmail.com>:
>> ...
>> The link errors occur when I am creating a plugin library
>> (SurfaceMeshPlugin) which uses the library that the QFilterWidget is
>> compiled into (PipelineLib).
> 
> Oh, and just as to rule out the very obvious: so I understand you have
> at least two DLLs at this point: your plugin DLL, and the PipelineLib
> DLL.
> 
> When building your plugin DLL, you DO have a linker statement which
> links against PipelineLib DLL, right?
> 
> Something as in:
> 
>   LIBS += -L/path/to/directory/containing/PipelineLib/ \ -lPipelineLib
> 
> Cheers, Oliver

Yep. (Using CMake but I have the equivalent lines). I have double checked in the generated Visual Studio solution also.

Always nice to check the most simple errors ;-)

Mike




More information about the Interest mailing list