How can I use both C++ shared and static libraries in a same Linux program?
When managing with g++, I've tried to arrange -static command ahead and behind the libraries I don't want to link statically, but with no results. ld through g++ complains about where are the .a files of the shared libraries (cannot find -lwhatever error).
EDIT: the problem isn't the cannot find -lwhatever error, since it just happens because there isn't static version of the specified library. What I'm trying to do is to specify which libraries are to be statically linked and which are to be dynamically.