Boost logo

Boost Users :

From: David Kowis (dkowis_at_[hidden])
Date: 2003-10-17 21:46:02


First of all, apologies if this information can be found somewhere else. I
couldn't find it anywhere on the internet.

Now to the real problem. I'm simply trying to utilize the boost libraries
(filesystem in particular) in my program. I'm just trying to even run the
example programs. I'm using Visual C++ 6.0 sp5.
I figured out how to compile it by including the directory where boost is. So
the example program compiles perfectly fine. Then the shit hits the fan, every
reference to any boost object gets an unresolved external error. I have no clue
why this is happening, and the most frustrating part is I cannot find
information anywhere on the internet on how to make it work. I find lots of
references telling me how great it is, but I cannot use it!

Dave

My compile output from visual c++ 6.0:
--------------------------------------------------------------------------------
Compiling...
path_test.cpp
Linking...
LINK : warning LNK4075: ignoring /INCREMENTAL due to /DEBUGTYPE specification
path_test.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::filesystem::path::path(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??0path_at_filesystem@boost@@QAE_at_ABV?$basic_s
tring_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::filesystem::path::path(char const *,enum boost::filesystem::path_format)"
(??0path_at_filesystem@boost@@QAE_at_PBDW4path_format_at_12@@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::is_complete(void)const "
(?is_complete_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::has_branch_path(void)const "
(?has_branch_path_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::has_relative_path(void)const "
(?has_relative_path_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::has_root_directory(void)const "
(?has_root_directory_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::has_root_name(void)const "
(?has_root_name_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: bool
__thiscall boost::filesystem::path::has_root_path(void)const "
(?has_root_path_at_path@filesystem_at_boost@@QBE_NXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: class
boost::filesystem::path __thiscall boost::filesystem::path::root_path(void)const
" (?root_path_at_path@filesystem_at_boost@@QBE?AV123_at_XZ)
path_test.obj : error LNK2001: unresolved external symbol "public: class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> __thiscall boost::filesystem::path::root_directory(void)const "
(?root_directory_at_path@filesyst
em_at_boost@@QBE?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@XZ)
path_test.obj : error LNK2001: unresolved external symbol "public: class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> __thiscall boost::filesystem::path::root_name(void)const "
(?root_name_at_path@filesystem_at_boost@@
QBE?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@XZ)
path_test.obj : error LNK2001: unresolved external symbol "public: class
boost::filesystem::path __thiscall
boost::filesystem::path::relative_path(void)const "
(?relative_path_at_path@filesystem_at_boost@@QBE?AV123_at_XZ)
path_test.obj : error LNK2001: unresolved external symbol "public: struct
boost::iterator_adaptor<struct boost::filesystem::detail::path_itr_imp,struct
boost::default_iterator_policies,class std::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 &,class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const *,struct std::bidirectional_iterato
r_tag,int> __thiscall boost::filesystem::path::begin(void)const "
(?begin_at_path@filesystem_at_boost@@QBE?AU?$iterator_adaptor_at_Upath_itr_imp_at_detail@filesystem_at_boost@@Udefault_iterator_policies_at_4@V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@st
d@@ABV67_at_PBV67@Ubidirectional_iterator_tag_at_7@H_at_3@XZ)
path_test.obj : error LNK2001: unresolved external symbol "bool __cdecl
boost::filesystem::boost_directory_name(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?boost_directory_name_at_filesystem@boost
@@YA_NABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
path_test.obj : error LNK2001: unresolved external symbol "bool __cdecl
boost::filesystem::boost_file_name(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?boost_file_name_at_filesystem@boost@@YA_NABV?
$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
path_test.obj : error LNK2001: unresolved external symbol "bool __cdecl
boost::filesystem::posix_name(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?posix_name_at_filesystem@boost@@YA_NABV?$basic_str
ing_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: class
boost::filesystem::path __thiscall
boost::filesystem::path::branch_path(void)const "
(?branch_path_at_path@filesystem_at_boost@@QBE?AV123_at_XZ)
path_test.obj : error LNK2001: unresolved external symbol "public: class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> __thiscall boost::filesystem::path::leaf(void)const "
(?leaf_at_path@filesystem_at_boost@@QBE?AV?$ba
sic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@XZ)
path_test.obj : error LNK2001: unresolved external symbol "class
boost::filesystem::path const & __cdecl
boost::filesystem::check_posix_leaf(class boost::filesystem::path const &)"
(?check_posix_leaf_at_filesystem@boost@@YAABVpath_at_12@ABV312@@Z)
path_test.obj : error LNK2001: unresolved external symbol "bool __cdecl
boost::filesystem::exists(class boost::filesystem::path const &)"
(?exists_at_filesystem@boost@@YA_NABVpath_at_12@@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::filesystem::path::path(char const *)" (??0path_at_filesystem@boost@@QAE_at_PBD@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: class
boost::filesystem::path & __thiscall boost::filesystem::path::operator/=(class
boost::filesystem::path const &)" (??_0path_at_filesystem@boost@@QAEAAV012_at_ABV012@@Z)
path_test.obj : error LNK2001: unresolved external symbol "public: void
__thiscall boost::filesystem::detail::path_itr_imp::operator++(void)"
(??Epath_itr_imp_at_detail@filesystem_at_boost@@QAEXXZ)
path_test.obj : error LNK2001: unresolved external symbol "public: void
__thiscall boost::filesystem::detail::path_itr_imp::operator--(void)"
(??Fpath_itr_imp_at_detail@filesystem_at_boost@@QAEXXZ)
Debug/path_test.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.

path_test.exe - 25 error(s), 1 warning(s)

            _ ._ _ , _ ._
          (_ ' ( ` )_ .__)
        ( ( ( ) `) ) _)
       (__ (_ (_ . _) _) ,__)
           `~~`\ ' . /`~~`
           ,::: ; ; :::,
          ':::::::::::::::'
  _____________/_ __ \____________
             David Kowis
         Computer Programmer

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net