At 11:01 PM 4/6/2003, Cain O'Sullivan wrote:

>I am trying to compile a program using the filesystem module.  I am using
>VC7 and whenever I try to compile it get errors such as ...
>
>TestBoostFs error LNK2005: "public: unsigned int __thiscall
>std::basic_string<char,struct std::char_traits<char>,class
>std::allocator<char> >::size(void)const "
>([EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@QBEIXZ)
>already defined in libcpd.lib(ios.obj)
>
>These errors occurr as soon as I add any boost::filesystem code.
>
>Any suggestions?

You need to create a static or dynamic library and link to it. Do that either by adding a library build project to your workspace/solution, or by running bjam in the boost root directory and letting it build the library (which you will need to move and/or point to so the link works).

--Beman


_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to