[Qt-creator] compiling error

Breno Carneiro Pinheiro brenodee at gmail.com
Mon Nov 23 21:49:59 CET 2009


Hi, the output is below:


 Running build steps for project HelloWorld...

Starting: /usr/bin/qmake-qt4 /home/breno/Qt4/HelloWorld/HelloWorld.pro -spec
/usr/share/qt4/mkspecs/linux-g++ -r

Exited with code 0.

Starting: /usr/bin/make -w

make: Entering directory `/home/breno/Qt4/HelloWorld'

/usr/bin/uic-qt4 helloworld.ui -o ui_helloworld.h

g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -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 -I. -I. -o main.o main.cpp

g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -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 -I. -I. -o helloworld.o
helloworld.cpp

/usr/bin/moc-qt4 -DQT_SHARED -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 -I. -I. helloworld.h -o moc_helloworld.cpp

g++ -c -pipe -fpermissive -g -Wall -W -D_REENTRANT -DQT_SHARED -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 -I. -I. -o moc_helloworld.o
moc_helloworld.cpp

g++ -Wl,--no-undefined -o HelloWorld main.o helloworld.o moc_helloworld.o
-L/usr/lib -lQtGui -lQtCore -lpthread

/usr/lib/libQtGui.so: undefined reference to `__cxa_guard_acquire at CXXABI_1.3
'

make: Leaving directory `/home/breno/Qt4/HelloWorld'

/usr/lib/libQtGui.so: undefined reference to `operator
delete(void*)@GLIBCXX_3.4'

/usr/lib/libQtGui.so: undefined reference to `vtable for
__cxxabiv1::__si_class_type_info at CXXABI_1.3'

/usr/lib/libQtGui.so: undefined reference to `operator
delete[](void*)@GLIBCXX_3.4'

/usr/lib/libQtGui.so: undefined reference to `operator new(unsigned
int)@GLIBCXX_3.4'

/usr/lib/libQtGui.so: undefined reference to `vtable for
__cxxabiv1::__vmi_class_type_info at CXXABI_1.3'

/usr/lib/libQtGui.so: undefined reference to `__cxa_pure_virtual at CXXABI_1.3'

/usr/lib/libQtGui.so: undefined reference to `vtable for
__cxxabiv1::__class_type_info at CXXABI_1.3'

/usr/lib/libQtGui.so: undefined reference to `__cxa_guard_release at CXXABI_1.3
'

/usr/lib/libQtGui.so: undefined reference to `operator new[](unsigned
int)@GLIBCXX_3.4'

collect2: ld returned 1 exit status

make: *** [HelloWorld] Error 1

Exited with code 2.

Error while building project HelloWorld

When executing build step 'Make'

************


Thanks for all,


Breno




2009/11/23 Andre Poenitz <andre.poenitz at mathematik.tu-chemnitz.de>

> On Mon, Nov 23, 2009 at 04:20:15PM -0200, Breno Carneiro Pinheiro wrote:
> > Hi all, I 'm completely newbie here. I 'd like to run a simple app but I
> got
> > some (it seems to be) popular error.
> >
> >  /usr/lib/libQtGui.so: undefined reference to `operator
> > delete(void*)@GLIBCXX_3.4'
> >
> > /usr/lib/libQtGui.so: undefined reference to `vtable for
> > __cxxabiv1::__si_class_type_info at CXXABI_1.3'
> > [etc]
>
> Looks like you are not linking against libstdc++.
>
> That should not happen with a proper installation.
> Can you post the contents of the 'Compile output' pane?
>
> Andre'
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>



-- 
Breno Carneiro Pinheiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20091123/e83b064d/attachment.html 


More information about the Qt-creator-old mailing list