LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-11-2006, 03:32 AM   #1
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
undefined reference


Hi
I m comipling one application that is provided by qt itself for embedded device.... when I do make, following error comes...
Can anyone stat me reason for this error? and how should I proceed to solve it? I think of grepping but then how?
Thanks in advance for putting inputs..

g++ -c -I/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/include
-I/opt/host/i386/i386-unknown-linux/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -I.moc/linux-generic-g++/ -o .obj/linux-generic-g++//clockbase.o clockbase.cpp /opt/host/i386/i386-unknown-linux/bin/moc clock.h -o .moc/linux-generic-g++//moc_clock.cpp
g++ -c -I/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/include
-I/opt/host/i386/i386-unknown-linux/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -I.moc/linux-generic-g++/ -o .obj/linux-generic-g++//moc_clock.o .moc/linux-generic-g++//moc_clock.cpp
/opt/host/i386/i386-unknown-linux/bin/moc analogclock.h -o .moc/linux-generic-g++//moc_analogclock.cpp
g++ -c -I/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/include
-I/opt/host/i386/i386-unknown-linux/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -I.moc/linux-generic-g++/ -o .obj/linux-generic-g++//moc_analogclock.o
.moc/linux-generic-g++//moc_analogclock.cpp
/opt/host/i386/i386-unknown-linux/bin/moc clockbase.h -o .moc/linux-generic-g++//moc_clockbase.cpp
g++ -c -I/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/include
-I/opt/host/i386/i386-unknown-linux/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -I.moc/linux-generic-g++/ -o .obj/linux-generic-g++//moc_clockbase.o
.moc/linux-generic-g++//moc_clockbase.cpp
gcc -L/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib
-Wl,-rpath,/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib
-L/opt/host/i386/i386-unknown-linux/lib
-Wl,-rpath,/opt/host/i386/i386-unknown-linux/lib -o
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/bin/clock
.obj/linux-generic-g++//clock.o .obj/linux-generic-g++//analogclock.o
.obj/linux-generic-g++//main.o .obj/linux-generic-g++//clockbase.o
.obj/linux-generic-g++//moc_clock.o
.obj/linux-generic-g++//moc_analogclock.o
.obj/linux-generic-g++//moc_clockbase.o -lqpe -lqtopia -lqte
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqtopia.so: undefined reference to `non-virtual thunk to QSpinBox::valueChange()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QTextView::setText(QString const&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QWhatsThis::add(QWidget*, QString const&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::show()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setSelectionMode(QListView::SelectionMode)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItem::setup()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setAllColumnsShowFocus(bool)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setFont(QFont const&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setSorting(int, bool)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItem::sortChildItems(int,
bool)'/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so:
undefined reference to `QWhatsThis::leaveWhatsThisMode(QString const&, QPoint const&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::styleChange(QStyle&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QMetaObject::new_metaobject(char const*, char const*, QMetaData*, int, QMetaData*, int, QClassInfo*, int)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::className() const'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItem:aintFocus(QPainter*, QColorGroup const&, QRect const&)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::focusInEvent(QFocusEvent*)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::contentsMouseDoubleClickEvent(QMouseEvent*)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setRootIsDecorated(bool)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `non-virtual thunk to QMenuBar::updateItem(int)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setColumnWidthMode(int, QListView::WidthMode)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItemIterator:perator++()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::~QListView()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItemIterator::~QListViewItemIterator()'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QTextView::QTextView(QWidget*, char const*)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListView::setColumnAlignment(int, int)'
/home/linuette/host/Qt/qpe/qtopia-free-1.6.2/lib/libqpe.so: undefined reference to `QListViewItem::activate()'
 
Old 05-11-2006, 07:37 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I've not played around with qtopia, but the errors look as if the GUI library is not being linked in. Does your project file have the line QT -= GUI? If so remove it or maybe you want to add QT+= GUI and see what happens.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference to libiconv mjjzf Slackware 13 02-19-2013 12:39 PM
Undefined reference, why? george_mercury Programming 4 05-07-2009 01:15 AM
undefined reference to `XF86VidModeGetModeLine' apokryphos Linux - General 1 08-07-2005 07:40 PM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 04:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 01:38 PM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration