
Quoting John Maddock
You don't say what the errors are, but that usually happens if you build the lib against one runtime library (bjam builds against the dll runtime by default), and try and link your program against a different runtime.
John.
::_Copy(unsigned int)" (?_Copy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXI@Z) already defined in path_test.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string
::basic_string
const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in path_test.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const &)" (??0runtime_error@std@@QAE@ABV01@@Z) already defined in libcpd.lib(ios.obj) msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic_string ::append(class s
& __thiscall std::basic_string
::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z) already defined in path_test.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string ::append(unsigne d int,char)" (?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z) already defined in path_test.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "public: class std::basic_string ::append(char co nst *,unsigned int)" (?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z) already defined in path_test.obj msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall std::basic_string ::assign(class s
Sorry about that, this time I've pasted the errors into this message. This is
telling it to use boost_filesystem.lib in the runtime directory that bjam
creates. I rebuilt the entire thing.
Is there another file I'm supposed to link to? I don't remember there ever being
a .dll file being built. If there is, I haven't found it yet. I'm pretty sure I
followed the bjam instructions really well. Also I'm just trying to use
boost::filesystem. That doesn't appear to make a dll.
I've set up my MSVC project to use D:\mp3dber\boost-1.30.2 as an include
directory. That's where I extracted the source and built it using bjam.
Thanks,
David
My compile errors:
Compiling...
path_test.cpp
Linking...
LINK : warning LNK4075: ignoring /INCREMENTAL due to /DEBUGTYPE specification
msvcprt.lib(MSVCP60.dll) : error LNK2005: "private: void __thiscall
std::basic_string ::basic_string path_test.exe - 30 error(s), 2 warning(s)
_ ._ _ , _ ._
(_ ' ( ` )_ .__)
( ( ( ) `) ) _)
(__ (_ (_ . _) _) ,__)
`~~`\ ' . /`~~`
,::: ; ; :::,
':::::::::::::::'
_____________/_ __ \____________
David Kowis
Computer Programmer
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/