Hi guys, first post!
New to C++, Linux (Ubuntu 10.04) and CodeBlocks and wasn't sure whether to put this into the beginner section or here.
Am trying to compile a simple program that uses some acml math library, located in
I also have the respective header file:
Now I create a new empty project on CodeBlocks and Add the Linker file (.so) along with setting the include directories to add the header file. Compilation runs fine in both debug and Release mode, but when I try run the application, I get the error:
./AcmlNIckTry: error while loading shared libraries: libacml_mp.so: cannot open shared object file: No such file or directory
I have tried to find solutions for this problem and what i understand till now is that the program is trying to call the .so file but cant find it. This led me to try learn what a .so file really it turns out to be equivalent to .dll (which I don't know much about either). There is also a ".a" file in the same folder as the ".so" one but using that as a linker file in codeblocks results in errors.
And finally i ran "ldd <myprogram>" and get the following output
linux-gate.so.1 => (0xb781a000)
libacml_mp.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7709000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb76e2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb76c3000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7569000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7550000)
As I said I am a beginner, so if I haven't provided enough detail here about my problem, please let me know what else I can provide. Thanks in advance