dlopen and global variables in C/C++

Posted by mjn12 on Stack Overflow See other posts from Stack Overflow or by mjn12
Published on 2011-01-12T16:39:19Z Indexed on 2011/01/12 16:54 UTC
Read the original article Hit count: 143

Filed under:
|
|

Due to some restrictions I am being forced to load a library written in C at runtime. A third party provides two library to me as static archives which we turn into shared objects. The application I'm working with loads one of the libraries at runtime based on some hardware parameters. Unfortunately one of the libraries is configured largely with global variables.

I am already using dlsym to load function references but can I used dlsym to load references to these global variables as well?

© Stack Overflow or respective owner

Related posts about c++

Related posts about c