Boost instalation

After whole day trying to get boost working on my code blocks I still get undefined reference error when I #include <boost\shared_ptr.hpp>. I can link all libraries in lib folder and its still the same, I have copied there all libraries which have boost-jam built so I really dont know what am I doing wrong. I was doing it according this tutorial http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef
Any idea what could be wrong?
You're not using the binaries that are up on the Boost site, are you? Those are for VC++. If you're using MinGW, you need to build Boost from source.
Did you read the Getting Started documentation?
http://www.boost.org/doc/libs/1_43_0/more/getting_started/index.html
You don't need to compile boost in order to use shared_ptr, it's a header-only library. What is the exact error message you're getting?
By the way, don't use \ as a path seperator, it should be /.
No, Im not using binaries. Documentation doest helped much and this is error I got.

||Warning: .drectve `-aligncomm:___hexdig_D2A,2' unrecognized|
||Warning: .drectve `-aligncomm:___mingw_gMTRemoveKeyDtor,2 ' unrecognized|
||Warning: .drectve `-aligncomm:___mingw_gMTKeyDtor,2 ' unrecognized|
||Warning: .drectve `-aligncomm:___mingw_usemthread_dll,2' unrecognized|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(ios_init.o)(.text$_ZNSt8ios_base4InitC2Ev+0x719):ios_init.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(ios_init.o)(.text$_ZNSt8ios_base4InitC2Ev+0x739):ios_init.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(ios_init.o)(.text$_ZNSt8ios_base4InitC2Ev+0x759):ios_init.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(ios_init.o)(.text$_ZNSt8ios_base4InitC2Ev+0x779):ios_init.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(ios_init.o)(.text$_ZNSt8ios_base4InitC2Ev+0x799):ios_init.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_personality.o)(.text$__gxx_personality_v0+0xce):eh_personality.cc||undefined reference to `_Unwind_GetIPInfo'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_personality.o)(.text$__cxa_call_unexpected+0xd5):eh_personality.cc||undefined reference to `_Unwind_Resume'|
::~stdio_filebuf()]+0x67):ext-inst.cc||undefined reference to `_Unwind_Resume'|
::~stdio_filebuf()]+0x6f):ext-inst.cc||undefined reference to `_Unwind_Resume'|
::~stdio_filebuf()]+0x67):ext-inst.cc||undefined reference to `_Unwind_Resume'|
::~stdio_filebuf()]+0x6f):ext-inst.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_throw.o)(.text$__cxa_throw+0x4e):eh_throw.cc||undefined reference to `_Unwind_RaiseException'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_throw.o)(.text$__cxa_rethrow+0x37):eh_throw.cc||undefined reference to `_Unwind_Resume_or_Rethrow'|
::~collate()]+0x3a):locale-inst.cc||undefined reference to `_Unwind_Resume'|
::~messages()]+0x3a):locale-inst.cc||undefined reference to `_Unwind_Resume'|
::~__timepunct()]+0x5d):locale-inst.cc||undefined reference to `_Unwind_Resume'|
::~messages()]+0x42):locale-inst.cc||undefined reference to `_Unwind_Resume'|
::~collate()]+0x42):locale-inst.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_globals.o)(.text$__cxa_get_globals_fast+0xb):eh_globals.cc||undefined reference to `__emutls_get_address'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_globals.o)(.text$__cxa_get_globals+0xb):eh_globals.cc||undefined reference to `__emutls_get_address'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_alloc.o)(.text$__cxa_allocate_exception+0x179):eh_alloc.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_alloc.o)(.text$__cxa_free_exception+0x96):eh_alloc.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_alloc.o)(.text$__cxa_allocate_dependent_exception+0xff):eh_alloc.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(eh_alloc.o)(.text$__cxa_free_dependent_exception+0x9f):eh_alloc.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(codecvt.o)(.text$_ZNSt7codecvtIcciED2Ev+0x46):codecvt.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$_ZN12_GLOBAL__N_1L4initEv+0x14):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_init_function'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$_ZN9__gnu_cxx17__recursive_mutex6unlockEv[__gnu_cxx::__recursive_mutex::unlock()]+0x15):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_unlock'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_acquire+0x40):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_lock'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_acquire+0xe8):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_unlock'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_acquire+0x12d):guard.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_abort+0x21):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_unlock'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_abort+0x5c):guard.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_release+0x29):guard.cc||undefined reference to `__gthr_win32_recursive_mutex_unlock'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(guard.o)(.text$__cxa_guard_release+0x64):guard.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(c++locale.o)(.text$_ZSt14__convert_to_vIfEvPKcRT_RSt12_Ios_IostateRKPi+0x126):c++locale.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(c++locale.o)(.text$_ZSt14__convert_to_vIdEvPKcRT_RSt12_Ios_IostateRKPi+0x129):c++locale.cc||undefined reference to `_Unwind_Resume'|
C:\Program Files\CodeBlocksMinGW\MinGW\lib\libstdc++.a(c++locale.o)(.text$_ZSt14__convert_to_vIeEvPKcRT_RSt12_Ios_IostateRKPi+0x151):c++locale.cc||undefined reference to `_Unwind_Resume'|
)]+0x9b):iostream-inst.cc||undefined reference to `_Unwind_Resume'|
tlssup.c||undefined reference to `LoadLibraryA@4'|
tlssup.c||undefined reference to `GetProcAddress@8'|
tlssup.c||undefined reference to `GetProcAddress@8'|
tlssup.c||undefined reference to `FreeLibrary@4'|
||=== Build finished: 42 errors, 4 warnings ===|



Topic archived. No new replies allowed.