[KVIrc] Qmake branch, undefined reference error

Voker57 voker57 at gmail.com
Fri Feb 29 18:37:46 CET 2008


I'm trying to compile qmake branch and i get that error

> make[3]: Entering directory `/home/voker57/Sources/kvirc/src/modules/about'
> g++ -c -pipe -fpermissive -g -D_REENTRANT -Wall -W -fPIC -DQT_SHARED
> -DCOMPILE_THREADS_USE_POSIX -DCOMPILE_USE_QT4 -DQT_QT3SUPPORT_LIB
> -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++
> -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/Qt3Support
> -I/usr/include/qt4 -I/usr/include/qt4/QtDBus -I../../kvilib/tal
> -I../../kvilib/config -I../../kvilib/core -I../../kvilib/ext
> -I../../kvilib/file -I../../kvilib/irc -I../../kvilib/net
> -I../../kvilib/system -I../../kvirc/kernel -I../../kvirc/kvs
> -I../../kvirc/module -I../../kvirc/sparser -I../../kvirc/ui
> -I../../../build/modules/about/debug/moc -I. -o
> ../../../build/modules/about/debug/obj/aboutdialog.o aboutdialog.cpp In
> file included from aboutdialog.cpp:26:
> abouttext.inc:200:11: warning: trigraph ??! ignored, use -trigraphs to
> enable In file included from aboutdialog.cpp:26:
> abouttext.inc:1: warning: deprecated conversion from string constant to
> ‘char*’ aboutdialog.cpp:172: warning: unused parameter ‘checked’
> rm -f libkviabout.so.4.0.0 libkviabout.so libkviabout.so.4
> libkviabout.so.4.0 g++ -Wl,--no-undefined -shared
> -Wl,-soname,libkviabout.so.4 -o libkviabout.so.4.0.0
> ../../../build/modules/about/debug/obj/aboutdialog.o
> ../../../build/modules/about/debug/obj/libkviabout.o
> ../../../build/modules/about/debug/obj/moc_aboutdialog.o   -L/usr/lib
> -L../../../bin/debug/ -lkvilib -lpthread -lssl -lcrypto -lz -lQtDBus
> -lpthread -lQt3Support -lQtGui -lQtCore
> ../../../build/modules/about/debug/obj/aboutdialog.o: In function
> `KviAboutDialog':
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:88: undefined
> reference to `g_pApp'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:88: undefined
> reference to `KviApp::findImage(QString&, QString const&)'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:142:
> undefined reference to `g_pApp'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:142:
> undefined reference to `KviApp::getGlobalKvircDirectory(QString&,
> KviApp::KvircSubdir, QString const&)'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:88: undefined
> reference to `g_pApp'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:88: undefined
> reference to `KviApp::findImage(QString&, QString const&)'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:142:
> undefined reference to `g_pApp'
> /home/voker57/Sources/kvirc/src/modules/about/aboutdialog.cpp:142:
> undefined reference to `KviApp::getGlobalKvircDirectory(QString&,
> KviApp::KvircSubdir, QString const&)'
> ../../../build/modules/about/debug/obj/libkviabout.o: In function
> `about_module_init':
> /home/voker57/Sources/kvirc/src/modules/about/libkviabout.cpp:70: undefined
> reference to `KviKvsModuleInterface::kvsRegisterSimpleCommand(QString
> const&, bool (*)(KviKvsModuleCommandCall*))' collect2: ld returned 1 exit
> status

This one looks strange, i've checked sources and found everything correct.
Declaration:

>KVIRC_API KviApp                       * g_pApp                    = 0; // 
global application pointer

In kvi_app.h


When used, it's sometimes extern'ed

>extern KviApp * g_pApp;

sometimes not. And it still works, but not in this file.

That's what i could dig up :)
Thexception has the same problem, and Hellvis69 does not, maybe it's a 
compiler bug?

Please explain if somebody knows what that can mean.

P.S. g++ 4.2.3, QT 4.3.3
-- 

Voker57
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.omnikron.net/pipermail/kvirc/attachments/20080229/5960d123/attachment-0001.sig>


More information about the KVIrc mailing list