LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2002, 11:44 AM   #1
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Qt and lstdc++


Qt refuse to compile on my box. It's not my first post about that, last time someone suggest me to reinstall automake/autconf....
That was not the problem it seems.

So here is the eror I got each time I tried to installl Qt:
I already tried some version of Qt, but I got this error each time.
I (not so) recently installed a strange version of Qt I found on my box (qt-x11-2.2.4.tar.gz) I think it was working before, maybe it broke something?


g++ -o ./moc mocgen.o qbuffer.o qcollection.o qcstring.o qdatastream.o qdatetime.o qfile.o qgarray.o qgdict.o qglist.o qglobal.o qgvector.o qiodevice.o qregexp.o qstring.o qtextcodec.o qtextstream.o qfile_unix.o
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[2]: *** [moc] Error 1
make[2]: Leaving directory `/usr/local/qt/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory `/usr/local/qt'
make: *** [init] Error 2


Anyone can tell me what the hell is ld and lstdc++??????
 
Old 04-04-2002, 11:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ls is the GNU linker, it takes a bunch of object files (.o's) and makes a single executable out of them, -lbstdc++ means it want to use the standard c++ library. check you've got libstdc++ installed on your system.
 
Old 04-04-2002, 02:20 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
Thanks acid

OK... Now I got gcc version 2.95, it seems it was the problem.
Guess what...

./configure ------>no problem
make --------->After 10 min of compilation I got this error:

/usr/local/gcc-2.95/gcc/xgcc -B/usr/local/gcc-2.95/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I. -nostdinc++ -D_IO_MTSAFE_IO indstream.cc -o pic/indstream.o
/usr/local/gcc-2.95/gcc/xgcc -B/usr/local/gcc-2.95/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I.
-I. -nostdinc++ -D_IO_MTSAFE_IO indstream.cc
indstream.cc: In method `struct streampos indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)':
indstream.cc:82: `struct streampos' used where a `int' was expected
indstream.cc:85: `struct streampos' used where a `int' was expected
indstream.cc:87: `struct streampos' used where a `int' was expected
indstream.cc:89: conversion from `int' to non-scalar type `streampos' requested
indstream.cc: In method `struct streampos indirectbuf::seekpos(_G_fpos64_t, int
= 3)':
indstream.cc:99: `struct streampos' used where a `int' was expected
indstream.cc:102: `struct streampos' used where a `int' was expected
indstream.cc:104: `struct streampos' used where a `int' was expected
indstream.cc:106: conversion from `int' to non-scalar type `streampos' requestedmake[1]: *** [indstream.o] Error 1
make[1]: Leaving directory `/usr/local/gcc-2.95/i686-pc-linux-gnu/libio'
make: *** [all-target-libio] Error 2


What is this????
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
qt compile cannot find lstdc++ poboy975 Linux - Software 3 01-08-2005 01:03 PM
Compile errors involving lstdc++ kmullin Programming 0 05-25-2004 01:21 PM
g++ error lstdc++ develinux Programming 3 04-22-2004 12:50 PM
Installing Iperf >>cannot find -lstdc++!!!! RKris Linux - Software 1 12-16-2002 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 PM.

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