LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-07-2003, 05:41 PM   #16
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15

Something must be wrong with my configuration:

/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status

Hmm.....

wolverine
 
Old 07-07-2003, 07:32 PM   #17
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Wolverine,

how did you install that new version
of qt? The only other thing I can now
think of is that you're trying to use stuff
from an rpm that's not compatible with
your glibc...

Cheers,
Tink
 
Old 07-07-2003, 08:22 PM   #18
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15
Ok, updates....

gcc test.c -lqt -L/usr/lib/qt-3.1/lib doesn't work

g++ test.c -lqt -L/usr/lib/qt-3.1/lib DOES work



How can I fix it so I don't have to keep typing the end part when I want to compile?

wolverine
 
Old 07-07-2003, 08:41 PM   #19
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Use makefiles ;)

Cheers,
Tink
 
Old 07-07-2003, 09:41 PM   #20
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15
/me goes to read up on makefiles...

Should that last command work with gcc or not? If not, I seem to be cured.

Thanks all involved

wolverine
 
Old 07-07-2003, 10:50 PM   #21
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry for being so blind :} ... it
never occured to me you might
have been trying to compile qt-code
with the C compiler (which assumes
different name mangling...).

Cheers,
Tink
 
Old 07-08-2003, 07:51 PM   #22
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15
Ok, things have gone wrong lol. Now I can no longer compile kismet. (I could before)

Getting loads of parse errors this time...



I think I needs to start again, Slackware this time maybe...

wolverine
 
Old 07-08-2003, 07:58 PM   #23
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Ok, things have gone wrong lol. Now I can no longer compile kismet. (I could before)
Sorry to hear mate ... what happened?

Quote:
I think I needs to start again, Slackware this time maybe...
Heh ... welcome onboad, in case you
really do the switch :} ... it's a steep learning
curve, though, but well worth it ;)

/me has learnt more about Linux in one year of Slack than in several years of SuSE and Mandrake (and a few months of RedHat) ...


Cheers,
Tink
 
Old 07-12-2003, 08:20 PM   #24
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15
Here's what I get...

g++ -Ilibpcap-2002.12.23 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/src/ethereal-0.9.13/wiretap -I/usr/local/include -I/usr/include/freetype2 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2 -O2 -Wall -DVERSION_MAJOR=2 -DVERSION_MINOR=9 -DVERSION_TINY=1 -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -g -O2 -g -O2 -Wall -c expat.cc -o expat.o
expat.cc:716: parse error before `*' token
expat.cc: In function `void xpat_net_string(...)':
expat.cc:717: `len' undeclared (first use this function)
expat.cc:717: (Each undeclared identifier is reported only once for each
function it appears in.)
expat.cc:718: `s' undeclared (first use this function)
expat.cc: In function `std::vector<wireless_network*,
std::allocator<wireless_network*> > XMLFetchNetworkList(void*)':
expat.cc:730: `XML_Parser' undeclared (first use this function)
expat.cc:730: parse error before `=' token
expat.cc:731: `p' undeclared (first use this function)
expat.cc:736: `XML_SetElementHandler' undeclared (first use this function)
expat.cc:737: `XML_SetCharacterDataHandler' undeclared (first use this
function)
expat.cc:765: `XML_Parse' undeclared (first use this function)
expat.cc:767: `XML_GetCurrentLineNumber' undeclared (first use this function)
expat.cc:768: `XML_GetErrorCode' undeclared (first use this function)
expat.cc:768: `XML_ErrorString' undeclared (first use this function)
expat.cc: At global scope:
expat.cc:919: parse error before `*' token
expat.cc: In function `std::vector<gps_point*, std::allocator<gps_point*> >
XMLFetchGpsList(void*)':
expat.cc:934: parse error before `=' token
make: *** [expat.o] Error 1

Yeoowwwwch lol

Thanks.

Wolverine
 
Old 07-19-2003, 04:50 AM   #25
Wolverine
Member
 
Registered: Jul 2001
Location: UK
Posts: 33

Original Poster
Rep: Reputation: 15
Did I scare you?

wolverine
 
Old 10-06-2004, 10:50 AM   #26
cwizkid
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
Exclamation qt-linking problem

Hi..!
First of all make one thing to be sure.
qt version and qt-devel version are same. U can check as follows

1. rpm -q qt
2. rpm -q qt-devel

Check the numbers displayed or same or not in both packages. If not download the packages so that they match and install.

unistall a package which is to be reinstalled forcefully as follows
rpm -e --nodeps qt-devel (if qt-devel is a stale version.)
then install qt-devel new version or qt new version.

If you can't find the rpms then plz let me know.

All the best.

That's it.
 
Old 10-06-2004, 10:54 AM   #27
cwizkid
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
Exclamation Solution to cannot find -lqt-mt linking error

Hi..!
First of all make one thing to be sure.
qt version and qt-devel version are same. U can check as follows

1. rpm -q qt
2. rpm -q qt-devel

Check the numbers displayed or same or not in both packages. If not download the packages so that they match and install.

unistall a package which is to be reinstalled forcefully as follows
rpm -e --nodeps qt-devel (if qt-devel is a stale version.)
then install qt-devel new version or qt new version.

If you can't find the rpms then plz let me know.

All the best.

That's it.
 
  


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
failing to compile a simple glade app florg Programming 1 08-06-2005 03:25 AM
Can't compile sample GTK app slackwarefan Linux - Software 5 07-26-2005 07:57 PM
Pascal App Wont Compile (newb, help!) flamesrock Programming 0 10-20-2004 10:48 PM
Looking for help on how to compile app for cron bgriesi Linux - Software 0 06-25-2004 10:46 PM
Compile PHP as commandline app? ifm Linux - Software 3 07-06-2002 12:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration