Does anyone know why a library initialized within dlopen() would initialize a static variable owned by the main program. Both the main program and shared library have a copy of the static variable, but for some reason the shared library re-initializes the main program's copy of the static variable and destructs it, causing a segfault wh...
Hi,
I have a shared library libtest.so which will be loaded into the the main program using dlopen. Function test() reside in libtest.so and will be called in the main program through dlsym. Is there any way I could set up a break point on test?
Please note that the main programm has not been linked to libtest.so during linking time....
hi , i have a static library libsrp.a, i want to make a shared library libsrp.so from it that contains all symbols . please tell me how to make a .so under ubuntu.
thanks
...
Hi,
I'm trying to build a program against wxWidgets, and I get a linker error. I'd like to really understand what it means. The error is:
/usr/lib/libwx_baseu-2.8.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
What I don't understand is why the error is at libwx_baseu-2.8.so. I thought that .so fi...
What is the difference??? I use Eclipse and there are several project types including Static Libraries and Shared Libraries? Does one have an advantage over the other?
...
Does anybody know how the dynamic linking and shared library loading works in BusyBox 0.61 ? I can't seem to find how this is done. There's no 'ld' present on the embedded system I'm dealing with, nor is there an LD_LIBRARY_PATH variable set anywhere. My motivation for this is to be able to create a symlink in the /lib directory to ano...
Is it possible to import a shared object (without linking the program with it) and call any function?
Thanks.
...
I have an ordinary abstract class that has a couple of pure virtual methods. The class itself is a part of the shared library. The compilation of the shared library itself is OK. But when the library is linked to another program that has another class deriving from the abstract one in the shared library and defining the pure virtual meth...
When we are writing a new version of a library we made (in C), we are prohibited from changing, say, the size of a struct to be smaller. Why?
Specifically,
version 1 has this:
struct foo {
int a;
int b;
}
version 2 has this:
struct foo {
char a;
char b;
}
and we seperate struct definition from declaration, so as ...
For instance:
void* sdl_library = dlopen("libSDL.so", RTLD_LAZY);
void* initializer = dlsym(sdl_library,"SDL_Init");
Assuming no errors, initializer will point to the function SD_Init in the shared library libSDK.so.
However this requires knowing the symbol "SDL_Init" exists.
Is it possibly to query a library for all its symbols? E...
I'm a new-ish C++ programmer, and I'm doing my first program on my own using C++. I decided I would like to use JSON to store some of the data I'm going to be using, and I've found a library to handle JSON, JsonCpp.
I've installed the library using my Linux system's package manager, and in my C++ code, I've used in my source code file
...
Hi,
This is about folder level permissions. We have a document library with break inheritance. While adding folders, sub folders through code, again we coded for break inheritance.
Now the requirement is, when a user/group is added to subfolder permission list, we need to track this event. Which sharepoint event do we use and on what le...
My program is written in C++, using GCC on Ubuntu 9.10 64 bit. If depends on /usr/lib64/libstdc++.so.6 which actually points to /usr/lib64/libstdc++.so.6.0.13. Now I copy this program to virgin Ubuntu 7.04 system and try to run it. It doesn't run, as expected. Then I add to the program directory the following files:
libstdc++.so.6.0.13...
I have a singleton class, and I will compile it as a library static(lib) or dynamic(dll).
Is it guaranteed that calls to same file in a machine always refer to same and unique instance in both cases?
Edit:
What if a process loads two different library and different functions from these libraries want to use instance of singleton class....
I have a few different applications that share some common DLLs. At the moment I am copying each DLL into the application root folder (for each application) and it all works fine.
Obviously this isn't exactly the most efficient way as if I need to make a change in one, I need to redeploy this several times to all the different folders. ...
sudo easy_install ibm_db-1.0.1-py2.5-linux-i686.egg only works after sudo apt-get install python-dev. Some troubles to find that out in the first place ...
Downloaded from IBM site v9.5fp5_linuxia32_dsdriver.tar.gz and pointing IBM_DB_DIR and IBM_DB_LIB to the clidriver(/lib) dir -- is this needed/correct one? -- libdb2.so(.1) is in th...
I have a program that depends on a shared library it expects to find deep inside a directory structure. I'd like to move that shared library out and into a better place. On OS X, this can be done with install_name_tool. I'm unable to find an equivalent for Linux.
For reference, readelf -d myprogram spits out the following paraphrased ou...
I compiled my program as follows.
mpicc b_eff_io.c -o b_eff_io2 -I/scratch/irodero/papi/include -L/scratch/irodero/papi/src -lpapi -lm
41125309 4 drwxr-xr-x 3 irodero users 4096 May 3 23:14 .
39649287 4 drwxr-xr-x 12 irodero users 4096 May 3 00:27 ..
41126356 4 drwxr-xr-x 2 irodero users 4096 May 3 23:...
First, my compiler and OS:
Qt Creator 1.3
Qt 4.6 (32 bit)
Windows 7 Ultimate
I want to learn how to create and import a dll in Qt. I've created a *.dll file using Qt Creator, called Shared1.dll which contains nothing but an empty class named Shared1. Now I'd like to use Shared1 class in another Qt project. How can I do that?
Thanks ...
We are building our internal library of components up, and was wondering what everybody has in their library of reusable components for your organization, for desktop applications.
Our list currently includes only a couple of components:
Logon, Security and User Group functionality
System Tray / Service Framework
Component for Interne...