Linker-Problem
Verfasst: 22. November 2007 21:48
Hallo zusammen,
ich habe mir qtwin downgeloadet (setup-qt-win-free-msvc-3.3.4-3.exe)
von sourceforge, habe sie installiert und unter vc++ 6.0 Autoren Edition
unter Extras->Options die Include und Lib-Pfade eingetragen.
anschl. habe ich aus dem example-Ordner den hello-code in ein Projekt
einfefügt und dem Linker die Libs bekannte gegeben unter Projekt->Einstellungen, Lasche Linker Objekt-/Bibliothek-Module folgende Libs
angegeben: designercore.lib, editor.lib, qassistantclient.lib, qtmain.lib,
qt-mt3.lib, qui.lib.
kompilieren lässt es sich problemlos nur beim Linken bekomme ich folgende Fehler:
Temporäre Dateien und Ausgabedateien für "main - Win32 Debug" werden gelöscht.
--------------------Konfiguration: main - Win32 Debug--------------------
Kompilierung läuft...
hello.cpp
main.cpp
Linker-Vorgang läuft...
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_property(int,int,class QVariant *)" (?qt_property@Hello@@UAE_NHHPAVQVariant@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_emit(int,struct QUObject *)" (?qt_emit@Hello@@UAE_NHPAUQUObject@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_invoke(int,struct QUObject *)" (?qt_invoke@Hello@@UAE_NHPAUQUObject@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void * __thiscall Hello::qt_cast(char const *)" (?qt_cast@Hello@@UAEPAXPBD@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual char const * __thiscall Hello::className(void)const " (?className@Hello@@UBEPBDXZ)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "protected: void __thiscall Hello::clicked(void)" (?clicked@Hello@@IAEXXZ)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class QMetaObject * __cdecl Hello::staticMetaObject(void)" (?staticMetaObject@Hello@@SAPAVQMetaObject@@XZ)
Debug/main.exe : fatal error LNK1120: 7 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
main.exe - 8 Fehler, 0 Warnung(en)
Nun was mach ich falsch, fehlt eine Lib oder Projekt falsch erstellt?
Vielen Dank im voraus, Gruß Schakal
ich habe mir qtwin downgeloadet (setup-qt-win-free-msvc-3.3.4-3.exe)
von sourceforge, habe sie installiert und unter vc++ 6.0 Autoren Edition
unter Extras->Options die Include und Lib-Pfade eingetragen.
anschl. habe ich aus dem example-Ordner den hello-code in ein Projekt
einfefügt und dem Linker die Libs bekannte gegeben unter Projekt->Einstellungen, Lasche Linker Objekt-/Bibliothek-Module folgende Libs
angegeben: designercore.lib, editor.lib, qassistantclient.lib, qtmain.lib,
qt-mt3.lib, qui.lib.
kompilieren lässt es sich problemlos nur beim Linken bekomme ich folgende Fehler:
Temporäre Dateien und Ausgabedateien für "main - Win32 Debug" werden gelöscht.
--------------------Konfiguration: main - Win32 Debug--------------------
Kompilierung läuft...
hello.cpp
main.cpp
Linker-Vorgang läuft...
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_property(int,int,class QVariant *)" (?qt_property@Hello@@UAE_NHHPAVQVariant@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_emit(int,struct QUObject *)" (?qt_emit@Hello@@UAE_NHPAUQUObject@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual bool __thiscall Hello::qt_invoke(int,struct QUObject *)" (?qt_invoke@Hello@@UAE_NHPAUQUObject@@@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual void * __thiscall Hello::qt_cast(char const *)" (?qt_cast@Hello@@UAEPAXPBD@Z)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: virtual char const * __thiscall Hello::className(void)const " (?className@Hello@@UBEPBDXZ)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "protected: void __thiscall Hello::clicked(void)" (?clicked@Hello@@IAEXXZ)
hello.obj : error LNK2001: Nichtaufgeloestes externes Symbol "public: static class QMetaObject * __cdecl Hello::staticMetaObject(void)" (?staticMetaObject@Hello@@SAPAVQMetaObject@@XZ)
Debug/main.exe : fatal error LNK1120: 7 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
main.exe - 8 Fehler, 0 Warnung(en)
Nun was mach ich falsch, fehlt eine Lib oder Projekt falsch erstellt?
Vielen Dank im voraus, Gruß Schakal