Skip to content

Tag: shared-libraries

Create shared library with extension so

I have c++ shared library project in my eclipse. Project builds fine, but I always need to rename binary by adding .so extension. Is it possible somehow set Eclipse to create binary with needed extension? Answer Now that I see the command line, it is easy to answer the question. -o “libMYLIB” -o s…

Symbols not found during linking

I have a problem with a shared library (Linux) and a program that links against this library but does not find the symbols – although they are there. That’s what I have: A shared library “libetest.so” that is located in /usr/lib. When I do an it gives (beside some others) this output: …

Shared library on Linux and -fPIC error

I am trying to compile a shared library in Linux using a Makefile created with Cmake, but running make I obtain the following error: I provide the following command in the CMakeLists.txt in order to say that I want a shared (.so) library: add_library(cpp-lib SHARED ${CPP_FILES}) What else do I need to specify…