I'm not sure this is where to ask this question, but here goes.
I'm using visual C++ 2010 express edition and am trying to incorporate boost. In particular, I'm trying to use trim.hpp but I keep getting the following linker error:
MSVCMRT.lib(locale0_implib.obj) : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std._String_const_iterator<char,std::char_traits<char>,std::allocator<char> >): (0x02000019).
Boost was installed using the BoostPro 1.43 installer (because the 1.44 kept bombing).
My project settings are currently:
1.) Common language Runtime Support = "Common language Runtime Support (/clr)"
2.) Use of MFC = "Use Standard Windows Libraries"
3.) Use of ATL = "Not Using ATL"
4.) Runtime Libary = "Multi-threaded DLL (/MD)"
5.) Precompiled Headers = "Not Using Precompiled Headers"
I think maybe the project settings are to blame but I've tried every combination that I can think of and have tried the suggestions that I've seen on line, but none work. I've included the boost library in the vc++ include path, so I know the compiler is finding the needed boost files.
No Boost install is really required in order to use trip.hpp as that (from the Boost string algorithms library I presume) is a header-only library. All you have to do is put Boost in the include path to use it.
Prior to using the installer program, I did simply copy the .hpp files to the include folder but had the exact same linker error.
I tried turning off clr, but I get many many errors:
error C2871: 'System' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'Reflection' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'CompilerServices' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'InteropServices' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'Permissions' : a namespace with this name does not exist
error C2337: 'AssemblyTitleAttribute' : attribute not found
error C2337: 'AssemblyDescriptionAttribute' : attribute not found
error C2337: 'AssemblyConfigurationAttribute' : attribute not found
error C2337: 'AssemblyCompanyAttribute' : attribute not found
error C2337: 'AssemblyProductAttribute' : attribute not found
error C2337: 'AssemblyCopyrightAttribute' : attribute not found
error C2337: 'AssemblyTrademarkAttribute' : attribute not found
error C2337: 'AssemblyCultureAttribute' : attribute not found
error C2337: 'AssemblyVersionAttribute' : attribute not found
error C2337: 'ComVisible' : attribute not found
error C2337: 'CLSCompliantAttribute' : attribute not found
error C2337: 'SecurityPermission' : attribute not found
error C2653: 'SecurityAction' : is not a class or namespace name
error C2065: 'RequestMinimum' : undeclared identifier
Bookmarks