LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-10-2002, 01:34 AM   #1
sumit
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, 04:15 PM   #2
oldbee
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.
 
  


Reply


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: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
problem in loading a shared object in linux phani@tcs Linux - General 2 01-10-2006 04:50 PM
Dynamically sized objects in shared memory jtshaw Programming 2 03-16-2005 11:12 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
Not loading gdm;"libX11.so.6 cannot open shared object" zlobby Linux - Newbie 6 03-03-2004 05:30 PM


All times are GMT -5. The time now is 11:38 PM.

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