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


  Search this Thread
Old 12-21-2003, 07:58 AM   #1
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:

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

./a.out: /lib/ version `GCC_3.3' not found (required by /usr/lib/
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?
Old 12-21-2003, 09:10 AM   #2
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:
missing in /etc/
Put it there and type ldconfig. Hopefully it works(maybe).
Old 12-21-2003, 10:35 AM   #3
LQ Newbie
Registered: Apr 2003
Posts: 26

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


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 > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:04 PM.

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