Hey, remember back when Russell Mok said:
Try gcc 3.3.3. It fixed a problem related to weak symbol.
That fixed the wchar_t stuff. I still needed to hack the Jam file so that the gcc-Link-action action would link .so files with -pthread. *** 430,436 **** { $(SHELL_SET)$(gSHELL_LIBPATH)=$(LINK_LIBPATH)$(gAPPEND_LD_LIBRARY_PATH) $(SHELL_EXPORT)$(gSHELL_LIBPATH) ! $(.GXX[1]:R=$(GCC_BIN_DIR)) $(.GXX[2-]) $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])$(OUTTAG)" -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" "$(IMPLIB_FLAGS)$(NEEDIMPS)" -l$(FINDLIBS) $(LNOPT)$(RPATH_LINK). $(LNOPT)$(SONAME)$(<[1]:D=)$(SOTAG) $(ACTION_1)$(LN)$(_)-fs$(_)"$(<[1]:D=)$(OUTTAG)"$(_)"$(<[1])" } --- 430,436 ---- { $(SHELL_SET)$(gSHELL_LIBPATH)=$(LINK_LIBPATH)$(gAPPEND_LD_LIBRARY_PATH) $(SHELL_EXPORT)$(gSHELL_LIBPATH) ! $(.GXX[1]:R=$(GCC_BIN_DIR)) $(.GXX[2-]) $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])$(OUTTAG)" -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" "$(IMPLIB_FLAGS)$(NEEDIMPS)" -l$(FINDLIBS) $(LNOPT)$(RPATH_LINK). $(LNOPT)$(SONAME)$(<[1]:D=)$(SOTAG) -lpthread $(ACTION_1)$(LN)$(_)-fs$(_)"$(<[1]:D=)$(OUTTAG)"$(_)"$(<[1])" } I am sure there is a better way to do that, just not sure where in the gcc-tools.jam file would be the best place. I am still getting these strange link errors: gcc-Link-action bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true/libboost_prg_exec_monitor-gcc-1_31.so bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true/libboost_prg_exec_monitor-gcc-1_31.imp ld: 0711-317 ERROR: Undefined symbol: .cpp_main(int, char**) ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status LIBPATH=bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true:bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true:$LIBPATH export LIBPATH g++ -s -fPIC -shared -o "bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true/libboost_prg_exec_monitor-gcc-1_31.so" "bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true/execution_monitor.o" "bin/boost/libs/test/build/libboost_prg_exec_monitor.so/gcc/release/shared-linkable-true/cpp_main.o" -lpthread -- Peter Jones [unix;vi;crypto;c++;4wd] (http://pmade.org) PGP [5137 173E 5BFA 8C63 8982 F035 FDBB 1636 7D69 C63F]