|
From: Jim U. <ji...@3e...> - 2004-03-20 23:03:00
|
I got Boost shared_ptrs working, and probably other parts of Boost that are header-file only. You need to do the following: 1. Enable SGI iostreams in STLport (without compiling the library). This pulls in the iostream declarations; the linker won't complain unless you call or actually instantiate an iostream function. 2. Also #define _STLP_NO_CWCHAR in stl_user_config.h. 3. Patch KOS with the attached patch. It makes calls to typeid() assert at runtime. (Normally compilation errors will occur instead when RTTI is disabled.) You can #define __RTTI before compiling libk++ to leave the stub typeinfo functions out. 4. Add the boost path and libk++/include to your include path. It is not necessary to compile Boost; in fact I doubt it will work. 5. #include <rtti.h> before any inclusion of boost header files. This file simply redirects typeid(X) to typeid_override(). A short test program is attached as well. -- ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710 |