Brooks Garrison wrote:
Volodya,
Ok, and are you sure this file has any effect? Couple weeks ago, when I was still on 8.04, it had something called 'dash' as default shell.
The default shell I'm using is Terminal 2.22.1.
What does echo $LD_LIBRARY_PATH in the terminal say?
bgarrison@STK:~$ echo $LD_LIBRARY_PATH /home/bgarrison/local/lib:/usr/local/cuda/lib:
What does: LD_LIBRARY_PATH=/home/bgarrison/local/lib:$LD_LIBRARY_PATH your_program do?
The program executes as expected if I do this, but it also works if I execute it through the terminal by doing ./<program> so it seems that I -am- linking to the correct libraries. The problem seems to be that the debugger is trying to link with libraries it cannot find. I'd really hate to have to debug through printfs but that may be my only alternative if I cannot figure out how to set up the debugger correctly in Eclipse CDT.
It could be that CDT is unwilling to pass that variable to your program. Does setting LD_LIBRARY_PATH to /home/bgarrison/local/lib in the "Environment" tab of the debugger configurations dialog in CDT improves anything? - Volodya