Vraag & Antwoord

OS Linux

GCC3.2 probs

1 antwoord
  • Hoi, Tijdens het compilen met de GCC3.2 en externe libs, krijg ik continu ongegronde linker errors voor mijn neus. Ik heb expres een mini test-compilatie gemaakt met wat Qt erin. downloaden op: http://phpc1.cjb.net/~barry/code/qt-gcc3-test.tar.gz evt. kunt je in configure.make het pad naar gcc3 specificeren. Dit is de linker fout: [code:1:22f0733355] bash-2.05a$ make (cd .; make -f Makefile.am) make[1]: Entering directory `/home/barry/program/qt-gcc3-test' Makefile.am:37: warning: overriding commands for target `qt-gcc3-test-moc.o' Makefile.am:31: warning: ignoring old commands for target `qt-gcc3-test-moc.o' make[1]: *** Warning: File `qt-gcc3-test-moc.cpp' has modification time in the future (2003-02-13 22:00:35 > 2003-02-13 21:50:17) /opt/kde/qt/bin/moc qt-gcc3-test.h > qt-gcc3-test-moc.cpp qt-gcc3-test.h:0: Warning: No relevant classes found. No output generated. gcc -O2 -march=i386 -Wno-deprecated -I/opt/kde/qt/include -c -o qt-gcc3-test-moc.o qt-gcc3-test-moc.cpp gcc -O2 -march=i386 -Wno-deprecated -o qt-gcc3-test -L/opt/kde/qt/lib -L/usr/X11R6/lib -lqt-mt main.o qt-gcc3-test-moc.o qt-gcc3-test.o qt-gcc3-test-moc.o main.o: In function `main': main.o(.text+0x19): undefined reference to `QApplication::QApplication[in-charge](int&, char**)' main.o(.text+0x2c): undefined reference to `QString::QString[in-charge](char const*)' main.o(.text+0x41): undefined reference to `QFont::QFont[in-charge](QString const&, int, int, bool)' main.o(.text+0x4e): undefined reference to `QApplication::setFont(QFont const&, bool, char const*)' main.o(.text+0x56): undefined reference to `QFont::~QFont [in-charge]()' main.o(.text+0x74): undefined reference to `QString::shared_null' main.o(.text+0x7f): undefined reference to `QStringData::deleteSelf()' main.o(.text+0x8c): undefined reference to `operator new(unsigned)' main.o(.text+0x9a): undefined reference to `Qt_Gcc3_test::Qt_Gcc3_test[in-charge](QWidget*, char const*, int)' main.o(.text+0xa4): undefined reference to `QApplication::setMainWidget(QWidget*)' main.o(.text+0xb7): undefined reference to `QApplication::exec()' main.o(.text+0xc2): undefined reference to `QApplication::~QApplication [in-charge]()' main.o(.text+0xd5): undefined reference to `QString::shared_null' main.o(.text+0xe7): undefined reference to `QFont::~QFont [in-charge]()' main.o(.text+0x105): undefined reference to `QString::shared_null' main.o(.text+0x110): undefined reference to `QStringData::deleteSelf()' main.o(.text+0x11b): undefined reference to `QString::shared_null' main.o(.text+0x139): undefined reference to `operator delete(void*)' main.o(.text+0x147): undefined reference to `QApplication::~QApplication [in-charge]()' main.o: In function `__static_initialization_and_destruction_0(int, int)': main.o(.text+0x18e): undefined reference to `std::ios_base::Init::Init[in-charge]()' main.o(.text+0x181): undefined reference to `std::ios_base::Init::~Init [in-charge]()' main.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status make[1]: *** [qt-gcc3-test] Error 1 make[1]: Leaving directory `/home/barry/program/qt-gcc3-test' make: *** [all] Error 2 [/code:1:22f0733355] Ik kom er echt niet uit, ik heb al die functie toch echt meegelinkt. Ik vraag me af of er niet ergens iets aan GCC veranderd is, in de voorgaande versie's ging dit vlekkeloos. Erg bedankt, Barry

Beantwoord deze vraag

Weet jij het antwoord op deze vraag? Registreer of meld je aan met je account

Dit is een gearchiveerde pagina. Antwoorden is niet meer mogelijk.