Skip to content
Advertisement

Tag: dlopen

Duplicate static variable initialization in C++

I build a shared library “libMyLibrary.so” with a class “MyClass” that contains a static variable of type “MyClass”. Then I build an executable “MyLibraryTest” that I link against “libMyLibrary.so”. The main program uses “dlopen” to load dynamically a “.so” given as an argument. While building, the library and executable are generated in a directory, say, “buildDir/bin”. Then I install the

linux dlopen : how to make loading lib manager

I have the same code compiled with different arch options (FMV does not work as the functions return sse and i can’t change “default” to something with sse) How can i make a meta-library that at load time checks the cpu capability and load the corresponding lib? (without any dlsym machinery)? Answer One way to achieve what you want is

dlopen fails in chroot

I’m attempting this: I have an environment defined in /chroot/debian6.0/ where I have bound some directories and created other ones. One is libs/ which contains the library libOne.so and its dependencies So: This library has been compiled in the chroot environment, and I want to open it with a process run from the containing environment. This is the code: remote.c

Advertisement