Dear Boost experts:
when I compile a program(some example code from c++ book)
it contain
#include
#include
and I got a lot compile error related about it on my g++ with boost 1.46.1 installed
-------
-------
-----------------------------------------------------------------------------------------------------
eric@eric-laptop:~/cppcookbook/download/TESTDIR$ g++ -ltinyxml 14-3.cpp
/tmp/cct65iz6.o: In function `unsigned short boost::date_time::month_str_to_ushortboost::gregorian::greg_month(std::basic_string const&)':
14-3.cpp:(.text._ZN5boost9date_time19month_str_to_ushortINS_9gregorian10greg_monthEEEtRKSs[unsigned short boost::date_time::month_str_to_ushortboost::gregorian::greg_month(std::basic_string const&)]+0x97): undefined reference to `boost::gregorian::greg_month::get_month_map_ptr()'
/tmp/cct65iz6.o: In function `bool boost::regex_match<__gnu_cxx::__normal_iterator >, std::allocator > > >, char, boost::regex_traits >(__gnu_cxx::__normal_iterator >, __gnu_cxx::__normal_iterator >, boost::match_results<__gnu_cxx::__normal_iterator >, std::allocator > > > >&, boost::basic_regex > const&, boost::regex_constants::_match_flags)':
14-3.cpp:(.text._ZN5boost11regex_matchIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS5_EEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEbT_SD_RNS_13match_resultsISD_T0_EERKNS_11basic_regexIT1_T2_EENS_15regex_constants12_match_flagsE[bool boost::regex_match<__gnu_cxx::__normal_iterator >, std::allocator > > >, char, boost::regex_traits >(__gnu_cxx::__normal_iterator >, __gnu_cxx::__normal_iterator >, boost::match_results<__gnu_cxx::__normal_iterator >, std::allocator > > > >&, boost::basic_regex > const&, boost::regex_constants::_match_flags)]+0x4c): undefined reference to `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator >, std::allocator > > >, boost::regex_traits >::match()'
/tmp/cct65iz6.o: In function `boost::basic_regex >::assign(char const*, char const*, unsigned int)':
------------------------------------------------------------------------------------------This is only front part of the whole errors-------------------
these code is claimed worked on msvc++7.1 on window xp
and you can download it from
http://examples.oreilly.com/9780596007614/
14-1.xml
14-2.h
14-3.cpp
to test by yourself
plz help and thanks a lot in advance, Eric(on g++ 4.5.2, linuxkernel 2.6.38-10)