Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago. Improve this question ICBC Payment Gateway – PHP infosec.so Dynamic Shared Libraries Beginning I’m going to write out all of my process in the hopes that it will
Tag: shared-libraries
Seg fault when app & shared lib built with -static-libstdc++
If I build a C++ app with -static-libstdc++ which loads a shared lib (via dlopen) which was also built with -static-libstdc++, then the app seg faults during dlopen. BUT–this only happens in some setups: GCC 4.7.4, 32-bit: pass GCC 4.8.3, 32-bit: pass GCC 4.8.4, 64-bit: pass GCC 4.9.2, 64-bit: pass GCC 4.9.3, 32-bit: FAIL (unless RTLD_DEEPBIND is specified) GCC 4.9.3,
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 sets the name of the output file
Linking binary compiled with “-g” with library without “-g”
Will there be any issues if a binary compiled with gdb symbols (-g) is linked with a library without gdb symbols? I am debugging this issue, and I am checking if the “-g” might be causing this. Answer Linking libraries compiled with debug symbols and without debug symbols should not cause Segmentation fault. Debug symbols are used by the debugger
Linux C++ Dynamic Libs and static initialization order
Forgive me on the long post. Its a complicate problem I wanted a complete description. On Linux Fedora 21 (g++ 4.9.2) and like. I’m working on a C++ database wrapper library using a base class of “database” and inherited classes of Oracle and Sybase. Beyond that, I wanted some of the programs to be able to dynamically load the libraries
How to do runtime binding based on CPU capabilities on linux
Is it possible to have a linux library (e.g. “libloader.so”) load another library to resolve any external symbols? I’ve got a whole bunch of code that gets conditionally compiled for the SIMD level to be supported ( SSE2, AVX, AVX2 ). This works fine if the build platform is the same as the runtime platform. But it hinders reuse across
How to set the path that a .so library will search for other .so libraries?
I have a libA.so that depends on libB.so, which is located at ../libB/ (from libA.c). I’m trying to compile things in such a way that I don’t have to set any environment variables. I have: This compiles fine. When I run a program that loads libA with dlopen I get: so libA is not finding libB at runtime. I found
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: Now I have an application that makes use
cmake linking shared libraries on ubuntu
Hi I am having problems with linking two libraries on ubuntu using cmake 2.8.12 Directory structure CMakeLists.txt for lib1 This builds fine. Then for lib2 I have the following CMakeLists.txt Here I get Linking CXX shared library ../build/liblib2.so /usr/bin/ld: cannot find -llib1 I am not clear how to correctly link these two shared libraries using CMake. Anyone an idea what
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 in order to avoid the -fPIC error