Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-07-13 14:19:18


k i have program a.h that uses boost filesystem.

b.h includes a.h and also uses boost::filesystem.. when i build i get this
error.

C:/Boost/include/boost_1_34/boost/filesystem/convenience.hpp:70: multiple
defini
tion of
`boost::filesystem::basename(boost::filesystem::basic_path<std::string,
boost::filesystem::path_traits> const&)'
./teng/lib/libmy.a(my.o):C:/Boost/include/boost_1_34/boost/filesys
tem/convenience.hpp:70: first defined here
./teng/lib/libmy.a(my2.o): In function `ZN5boost10filesystem9exten
sionERKNS0_10basic_pathISsNS0_11path_traitsEEE':
C:/Boost/include/boost_1_34/boost/filesystem/convenience.hpp:58: multiple
defini
tion of
`boost::filesystem::extension(boost::filesystem::basic_path<std::string,
 boost::filesystem::path_traits> const&)'
./teng/lib/libmy.a(my.o):C:/Boost/include/boost_1_34/boost/filesys
tem/convenience.hpp:58: first defined here



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