Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-03-2004, 04:12 AM   #1
LQ Newbie
Registered: May 2004
Posts: 10

Rep: Reputation: 0
gcc libstdc++ problem


I just installed the latest gcc compiler (3.4.2). Compiling is no problem, but every time I try to run the program itself I get the following error:
./taak1: error while loading shared libraries: cannot open shared object file: No such file or directory
I did a bit of research which resulted in the following solution:

This helps, but only in the console I'm working in at that very moment. Whenever I open a new console I have to go through that procedure again. So after some more searching I found that I had to edit the /etc/ file and add the line /usr/local/lib to it. Alrighty, I did that, but no success .

Is there a way to fix this so I won't have to type those lines every time I open a new console? Pretty annoying since I have to program quite a lot in linux.

Thanks a lot,
Old 11-03-2004, 04:43 PM   #2
LQ Newbie
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I found the solution. I just copied the and file to the /lib directory and now it works fine .


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 version skew upgrading gcc Greg Buchholz Slackware 4 11-30-2005 01:18 AM
fluxbox-0.9.13 problem with gcc and libstdc++ StewieG Linux - Software 1 08-22-2005 03:04 PM
gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!! tagigogo Linux From Scratch 7 05-15-2005 11:19 AM
gcc, g++ libstdc ? WHAT!?! Trying to install scribus irbaileyus Linux - Software 7 02-18-2005 04:09 PM
What?!:gcc = 3.3.2 conflicts with libstdc++-3.3.2-2 dsledge Linux - Software 1 09-28-2004 06:24 AM > Forums > Non-*NIX Forums > Programming

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