|
Problem with loading Shared Library
When I include this function in the file, I am able to create a DLL but not load it (dlopen)
struct A : public mem_manager_t<A>{
tlm_module *handle;
};
static void default_function(void *ctx){
A *evt = (A *)ctx;
delete evt; ----------------------------------- (1)
}
If I comment out the line (1) [delete evt], then I can load the DLL.
Any reason why the 'delete' in the global static function is causing a problem in loading DLL?
The files are compiled using -fPIC option.
Do I need to add more compiler options?
|