From: stephan b. <st...@s1...> - 2004-12-26 14:57:57
|
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. -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |