I’m trying to compile the following simple DL library example code from Program-Library-HOWTO with g++. This is just an example so I can learn how to use and write shared libraries. The real code for the library I’m developing will be written in C++. If I compile the program with gcc it works fine. When I change the filename and
Tag: shared-libraries
Linux error while loading shared libraries: cannot open shared object file: No such file or directory
Program is part of the Xenomai test suite, cross-compiled from Linux PC into Linux+Xenomai ARM toolchain. Is the .1 at the end part of the filename? What does that mean anyway? Answer
Bash script to create symbolic links to shared libraries
I think this question is rather easy for you shell scripting monsters. I am looking for the most elegant and shortest way to create symbolic links to shared libraries for Unix by means of a bash shell script. What I need is starting out with a list of shared library files such as “libmythings.so.1.1, libotherthings.so.5.11”, get the symbolic links created
ld cannot find an existing library
I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too. I am calling the linker with: ld complains: However, libmagic exists: How do I diagnose this problem further, and what
GCC and ld can’t find exported symbols…but they’re there
I have a C++ library and a C++ application trying to use functions and classes exported from the library. The library builds fine and the application compiles but fails to link. The errors I get follow this form: app-source-file.cpp:(.text+0x2fdb): undefined reference to `lib-namespace::GetStatusStr(int)’ Classes in the library seem to be resolved just fine by the linker, but free functions and