User forums > Using Code::Blocks

code block not detecting shared libraries.

(1/1)

avanindra:
Hi All,

I have installed codeblock on fedora10. I made a console c++ project. I included all required headers and linked the libraries. When I build the project, it was successfully built. But when I run the code I get an error like:

Error while loading shared libraries: libCGAL.so.2 : can not open shared object file : no such file or directory.

When I checked,  I found that I have linked this library.

One more point I would like to add, when I was including the libraries, the .so.2 extension was not detected as usual library, so I included as All files while adding the this library.

Please do provide solution if any exists for it.

Thanks
avanindra

avanindra:
Any way I figured it out what was wrong. It was not problem with code block, Unix has particular way of finding shared libs.

Navigation

[0] Message Index

Go to full version