Hi,
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: libstdc++.so.6: cannot open shared object file: No such file or directory
I did a bit of research which resulted in the following solution:
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
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/ld.so.conf 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,
Edward.