LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2003, 10:09 AM   #1
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
Compile qt program.


Hi,
I made a small program using qt3 .I compiled it using these 3 commands :

Code:
qmake -project
qmake
make
When I run make it gives me an error about crt1.o.Here is the exact error :
Code:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
application.o: In function `Application::Application(QWidget *, char const *, bool, unsigned int)':
application.o(.text+0xdc): undefined reference to `KPushButton::KPushButton(QWidget *, char const *)'
application.o(.text+0x2b0): undefined reference to `KPushButton::KPushButton(QWidget *, char const *)'
application.o(.text+0x368): undefined reference to `KPushButton::KPushButton(QWidget *, char const *)'
application.o(.text+0x420): undefined reference to `KPushButton::KPushButton(QWidget *, char const *)'
moc_application.o(.gnu.linkonce.d.__vt_11Application+0x1c4): undefined reference to `Application::quit(void)'
collect2: ld returned 1 exit status
make: *** [myproject] Error 1
Could someone help?
Thank you.
 
Old 02-18-2003, 10:13 AM   #2
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
" /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o(.text+0x18): undefined reference to `main' "

This usally happens when you have no main function in your source code. How did you create you code. Did you write it manually or did you use somthing like qt designer?
 
Old 02-18-2003, 10:25 AM   #3
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Original Poster
Rep: Reputation: 30
I have used qt designer.
Thanks
hfawzy
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile program ust Linux - General 5 05-31-2004 04:37 PM
How does one compile a program? What do you need? TheMusicGuy Linux - Newbie 4 03-12-2004 01:10 AM
Compile Program mattp Linux - Newbie 4 03-09-2004 11:13 AM
Can't compile c++ program eg_wwkaa Programming 34 06-18-2003 08:59 PM
compile program Eddie9 Linux - General 1 05-21-2002 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration