LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem in dynamically loading the shared object (https://www.linuxquestions.org/questions/programming-9/problem-in-dynamically-loading-the-shared-object-11465/)

sumit 01-10-2002 12:34 AM

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()
{
}

oldbee 01-10-2002 03:15 PM

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.