Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-10-2002, 12:34 AM   #1
LQ Newbie
Registered: Jan 2002
Posts: 1

Rep: Reputation: 0
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()
Old 01-10-2002, 03:15 PM   #2
LQ Newbie
Registered: Jan 2002
Posts: 20

Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
problem in loading a shared object in linux phani@tcs Linux - General 2 01-10-2006 03:50 PM
Dynamically sized objects in shared memory jtshaw Programming 2 03-16-2005 10:12 AM
error while loading shared libraries: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
Not loading gdm;" cannot open shared object" zlobby Linux - Newbie 6 03-03-2004 04:30 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration