Sorry to bother everyone with what is probably a stupid question, but I'm having some trouble creating a basic Collada exporter.

When modifying some code from an old project, I tried to write a simple export function however, I always get a crash with various access violations when trying to initialize the DAE class. Depending on the project setting it seems to crash at different points in xsting or as a result of a bad pointer from xstring.

Also, even though the project compiles fine, I get the following warnings at the very end:
Code :
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)) imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)) imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z (public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)) imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z (public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,unsigned int))imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB (public: static unsigned int const std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::npos) imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z (public: char & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator[](unsigned int)) imported
1>libboost_system-vc90-mt-1_37.lib(error_code.obj) : warning LNK4049: locally defined symbol ?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ (public: unsigned int __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::size(void)const ) imported

I'm not a very experienced programmer, but it seems like there is a conflict between the boost library and xstring. Still I'm not entirely sure and I don't really have any clue on how to fix it if it is. The only code I have is just the initial "DAE dae".

Other than that I'm using:
Collada Dom 2.2
Visual Studio 2010 beta 1
Windows 7 x64