Hi again
I have tried to make these dependent libraries static, so they will be loaded
directly at startup but I have segmentation fault. i have copied the gdb debug
below:
#0 0xb7a9aa97 in std::_List_node_base::hook () from /usr/lib/libstdc++.so.6
#1 0xb7c2b90b in std::list<IMainChannel*, std::allocator<IMainChannel*>
>::_M_insert (this=0xb7c2efa8, __position={_M_node = 0xb7c2efa8}, [EMAIL
PROTECTED])
at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:1140
#2 0xb7c2b954 in std::list<IMainChannel*, std::allocator<IMainChannel*>
>::push_back (this=0xb7c2efa8, [EMAIL PROTECTED])
at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:761
#3 0xb7c27233 in IMainChannel (this=0xb7c13be0) at channel.cpp:338
#4 0xb7bfd73a in CVisualizationChannel_i (this=0xb7c13bdc)
at /home/nsn/AN/AmbiNet/acs-siemens/c-fe/vischannel.h:85
#5 0xb7bfc123 in __static_initialization_and_destruction_0 (__initialize_p=1,
__priority=65535) at vischannel.cpp:35
#6 0xb7bfc15f in global constructors keyed to
_ZN21CVisualizationChannel6m_nameE () at vischannel.cpp:294
#7 0xb7bfdb26 in __do_global_ctors_aux ()
from /home/nsn/AN/AmbiNet/acs-siemens/libfe-c.so
#8 0xb7bc45c5 in _init () from /home/nsn/AN/AmbiNet/acs-siemens/libfe-c.so
#9 0xb7f6b373 in ?? () from /lib/ld-linux.so.2
#10 0x00000001 in ?? ()
#11 0xbfc74374 in ?? ()
#12 0xbfc7437c in ?? ()
-
Thank you again
Hussein
ed <[EMAIL PROTECTED]> wrote: On Thu, 4 Oct 2007
17:13:58 +0100 (BST)
Hussein Al-Shatri <[EMAIL PROTECTED]> wrote:
> I have two libraries and they are dependent on each other. whan I
> start the program fail because they need information from each other.
> by the way I am using dlopen,
>
> dlopen( modpos->c_str(), RTLD_LAZY | RTLD_GLOBAL );
>
> any idea without changing lots of codes.
Create an init function that can take a structure that contains the
data they both need.
--
The ATM to the Netapp is screwed because of a memory leak in the lyris
server. AOL is planting trees instead of cell towers.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg
[Non-text portions of this message have been removed]
---------------------------------
Yahoo! Answers - Get better answers from someone who knows. Tryit now.
[Non-text portions of this message have been removed]