problem in dynamically loading the shared object
I am creating the shared object that have to be dynamically loaded during run time using dlopen(), I am implementing _init() method .
But when I am making this shared object the following error message will come multiple definitions of _init() , first find in C Run Time library crti.o our definition of _init() extern "C" void _init() { } |
My guess is you probably have dragged in an unecessary (system) lib into your share lib building line in your make file. That lib is also a shared lib and it has a _init() conflicting with yours.
One shared lib can only have one _init. |
All times are GMT -5. The time now is 01:22 AM. |