LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-21-2003, 07:58 AM   #1
luzi82
LQ Newbie
 
Registered: Apr 2003
Posts: 26

Rep: Reputation: 15
gcc 3.3.2, shared library


using Debian 3.0r1
using kernel 2.4.23
using gcc 3.3.2
I wish to make a helloworld using c++'s cout.
compile ok using g++
but error when execute:

Code:
./a.out: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
odd, the libstdc++.so.5 exist in /usr/local/lib/
when I copy this file into /usr/lib/ for test
it return another error:

Code:
./a.out: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.5)
I guess the error is caused by linux do not realize there exist a shared library in /usr/local/lib/
something more strange, redhat do not make the same error!! (so I think it is a debian problem...)

how can I fix it?
thx.
 
Old 12-21-2003, 09:10 AM   #2
CMDR_PAIN
LQ Newbie
 
Registered: Jul 2003
Location: Poland
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
well, i think the problem is probably that there is a line:
/usr/local/lib
missing in /etc/ld.so.conf
Put it there and type ldconfig. Hopefully it works(maybe).
 
Old 12-21-2003, 10:35 AM   #3
luzi82
LQ Newbie
 
Registered: Apr 2003
Posts: 26

Original Poster
Rep: Reputation: 15
thx a lot~~~~~
 
  


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
Where can I get every shared library at? Balkman Linux - General 2 08-28-2004 11:56 PM
help shared library jingle_mj Linux - Newbie 1 08-13-2004 05:36 PM
help shared library jingle_mj Programming 4 08-13-2004 05:13 AM
help shared library jingle_mj Linux - General 1 08-13-2004 04:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:04 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