Pas de doute c'est fun !
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QtLibrary2::~QtLibrary2(void)" (__imp_??1QtLibrary2@@QAE@XZ) referenced in function _main E:\Qt4 VisualStudio C++\QtApplicationUsingQtLib2\QtApplicationUsingQtLib2\main.obj QtApplicationUsingQtLib2By default, VS compiles with "Treat wchar_t as Built-in Type" enabled (
/Zc:wchar_t
). Qt compiles with that option disabled (/Zc:wchar_t-
). If you disable the "Treat wchar_t as Built-in Type" in VS (under Configuration Properties > C/C++ > Language), before building the static library, does that fix it?Vous cherchez une solution ?
Je n'en ai pas, je tente toujours d'utiliser une pauvre DLL qu'elle soit dynamique ou static peut importe cela m'est égale mais cela semble impossible.
Visual Studio Static Library
Project -> (bouton droit) Properties -> Configuration Properties -> General -> (volet) Project Defaults -> Configuration Type : Static Library (.lib), Dynamic Library (.dll)
Aucun commentaire:
Enregistrer un commentaire