User forums > Using Code::Blocks

[SOLVED]"Cannot open shared object file ..." when running executable from C::B

<< < (4/4)

oBFusCATed:

--- Quote from: ejamsa on December 10, 2013, 08:20:50 am ---What i don't understand is that why such difference between global and project settings?

--- End quote ---
Because you're not supposed to changed the compiler settings in the general case. Only in few special cases.
It seems that C::B is forcing you to setup the project correctly :)


--- Quote from: ejamsa on December 10, 2013, 08:20:50 am ---Also LD_LIBRARY_PATH should contain SFML's lib directory regardless of settings in C::B because I've added it to ~/.bashrc!

--- End quote ---
If you start C::B from a bash console it should work. But if you're starting it from the desktop then it won't work, because bash is never executed. Just a bare terminal with your application running in it.

Navigation

[0] Message Index

[*] Previous page

Go to full version