[Qt-creator] qt-creator and multiple projects link issue with msvc
Matthias Pospiech
matthias.pospiech at gmx.de
Wed Jan 27 13:02:02 CET 2010
Sandro Cavazzoni schrieb:
> Under linux with gcc i've no problem... it compile my .so objects and
> after that it compile main binary linking it with my .so
> Under windows with msvc it doesn't work... it compile correctly my dll
> but when it compile main binary it cannot link with it because it want a
> .lib and not a .dll
The .lib contains information necessary to load the dll.
A .lib however is only created if your library contains the necessary
code elements.
I mean the '__declspec(dllexport)' and the corresponding import one.
This is only necessary with the msvc compiler. An example is shown here
http://de.wikipedia.org/wiki/Dynamic_Link_Library#Erstellen_einer_DLL
Matthias
More information about the Qt-creator-old
mailing list