From: Christian P. <cp...@se...> - 2004-12-26 15:12:06
|
Please update again from CVS. Compiles with libltdl for me now. Am Sonntag 26 Dezember 2004 15:56 schrieb stephan beal: > On Sunday 26 December 2004 15:38, Christian Prochnow wrote: > > Log Message: > > Added SharedLibCache to libltdl implementation. Added templatetized > > handle type to SharedLibCache. > > stephan: please see if this is a solution with lt_dlclose() > > With rev 1.8 of SharedLib.ltdl.cpp: > > gcc 3.3.5 20040809: > > > SharedLib.ltdl.cpp: In constructor > `P::System::SharedLib::SharedLib(const > std::string&, P::System::SharedLib::BindMode)': > SharedLib.ltdl.cpp:96: error: invalid conversion from > `lt_dlhandle_struct*' to > `long unsigned int' > SharedLib.ltdl.cpp:96: error: initializing argument 2 of `void > P::System::SharedLibCache<handle_t, destroyF>::add(const > std::string&, long > unsigned int) [with handle_t = lt_dlhandle_struct*, destroyF = > P::System::SharedLibCloser]' > SharedLibCache.h: In member function `void > P::System::SharedLibCache<handle_t, > destroyF>::add(const std::string&, long unsigned int) [with handle_t > = > lt_dlhandle_struct*, destroyF = P::System::SharedLibCloser]': > SharedLib.ltdl.cpp:96: instantiated from here > SharedLibCache.h:61: error: invalid conversion from `long unsigned int' > to ` > lt_dlhandle_struct*' > > > The same with 1.7. > > That's why i had that stupid double-cast, first static_cast to void * > then to reinterpret_cast() (EVIL!) to ulong. :/ That's in rev 1.6, and > compiles on my box. |