`
ncs478yl
  • 浏览: 30229 次
社区版块
存档分类
最新评论

boost log 使用碰到的问题.

阅读更多

boost log 使用碰到的问题.
2011年12月30日
  好不容易编译通过了Boost库和Log库,使用时却发现报如下错误:
  1>------ Build started: Project: log, Configuration: Debug Win32 ------
  1>  stdafx.cpp
  1>  log.cpp
  1>c:\program files\microsoft visual studio 10.0\vc\include\boost\log\sources\global_logger_st orage.hpp(136): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
  1>          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : see declaration of 'sprintf'
  1>          c:\program files\microsoft visual studio 10.0\vc\include\boost\log\sources\global_logger_st orage.hpp(122) : while compiling class template member function 'void boost::log_mt_nt5::sources::aux::logger_singleton::init_instance(void)'
  1>          with
  1>          [
  1>              TagT=boost::log_mt_nt5::trivial::logger
  1>          ]
  1>          c:\program files\microsoft visual studio 10.0\vc\include\boost\log\trivial.hpp(100) : see reference to class template instantiation 'boost::log_mt_nt5::sources::aux::logger_singleton' being compiled
  1>          with
  1>          [
  1>              TagT=boost::log_mt_nt5::trivial::logger
  1>          ]
  1>libboost_log-vc100-mt-gd-1_47.lib(trivial.obj) : error LNK2019: unresolved external symbol "public: class boost::filesystem3::path & __thiscall boost::filesystem3::path::replace_extension(class boost::filesystem3::path const &)" () referenced in function "class boost::filesystem3::path __cdecl boost::log_mt_nt5::trivial::aux::`anonymous namespace'::suggest_file_name(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(trivial.obj) : error LNK2019: unresolved external symbol "private: static class std::codecvt const * & __cdecl boost::filesystem3::path::wchar_t_codecvt_facet(vo id)" () referenced in function "public: static class std::codecvt const & __cdecl boost::filesystem3::path::codecvt(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2001: unresolved external symbol "private: static class std::codecvt const * & __cdecl boost::filesystem3::path::wchar_t_codecvt_facet(vo id)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(trivial.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::convert(char const *,char const *,class std::basic_string::char_traits,class std::allocator > &,class std::codecvt const &)" () referenced in function "void __cdecl boost::filesystem3::path_traits::convert(char const *,class std::basic_string::char_traits,class std::allocator > &,class std::codecvt const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(trivial.obj) : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" () referenced in function "void __cdecl boost::system::`dynamic initializer for 'posix_category''(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(trivial.obj) : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" () referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "class boost::filesystem3::path __cdecl boost::filesystem3::detail::current_path(class boost::system::error_code *)" () referenced in function "class boost::filesystem3::path __cdecl boost::filesystem3::current_path(void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "class boost::filesystem3::path __cdecl boost::filesystem3::absolute(class boost::filesystem3::path const &,class boost::filesystem3::path const &)" () referenced in function "private: class boost::filesystem3::path __thiscall boost::log_mt_nt5::sinks::`anonymous namespace'::file_collector::make_absolute(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "public: class boost::filesystem3::path __thiscall boost::filesystem3::path::parent_path(void)const " () referenced in function "public: virtual void __thiscall boost::log_mt_nt5::sinks::`anonymous namespace'::file_collector::store_file(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "public: class boost::filesystem3::path & __thiscall boost::filesystem3::path::operator/=(class boost::filesystem3::path const &)" () referenced in function "class boost::filesystem3::path __cdecl boost::filesystem3::operator/(class boost::filesystem3::path const &,class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "class boost::filesystem3::file_status __cdecl boost::filesystem3::detail::status(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "bool __cdecl boost::filesystem3::exists(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "bool __cdecl boost::filesystem3::detail::create_directories(cla ss boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "bool __cdecl boost::filesystem3::create_directories(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "bool __cdecl boost::filesystem3::detail::equivalent(class boost::filesystem3::path const &,class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "bool __cdecl boost::filesystem3::equivalent(class boost::filesystem3::path const &,class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "unsigned __int64 __cdecl boost::filesystem3::detail::file_size(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "unsigned __int64 __cdecl boost::filesystem3::file_size(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "__int64 __cdecl boost::filesystem3::detail::last_write_time(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "__int64 __cdecl boost::filesystem3::last_write_time(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "bool __cdecl boost::filesystem3::detail::remove(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "bool __cdecl boost::filesystem3::remove(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "struct boost::filesystem3::space_info __cdecl boost::filesystem3::detail::space(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "struct boost::filesystem3::space_info __cdecl boost::filesystem3::space(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "class boost::filesystem3::path __cdecl boost::filesystem3::detail::system_complete(class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "class boost::filesystem3::path __cdecl boost::filesystem3::system_complete(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::detail::rename(class boost::filesystem3::path const &,class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "void __cdecl boost::filesystem3::rename(class boost::filesystem3::path const &,class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "public: class boost::filesystem3::path __thiscall boost::filesystem3::path::filename(void)const " () referenced in function "private: static class std::basic_string::char_traits,class std::allocator > __cdecl boost::log_mt_nt5::sinks::`anonymous namespace'::file_collector::filename_string(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::detail::directory_iterator_con struct(class boost::filesystem3::directory_iterator &,class boost::filesystem3::path const &,class boost::system::error_code *)" () referenced in function "public: __thiscall boost::filesystem3::directory_iterator::directory_ iterator(class boost::filesystem3::path const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::dispatch(class boost::filesystem3::directory_entry const &,class std::basic_string::char_traits,class std::allocator > &,class std::codecvt const &)" () referenced in function "public: class boost::filesystem3::path & __thiscall boost::filesystem3::path::operator=::filesystem3::directory_entry>(class boost::filesystem3::directory_entry const &)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::path_traits::convert(wchar_t const *,wchar_t const *,class std::basic_string::char_traits,class std::allocator > &,class std::codecvt const &)" () referenced in function "public: class std::basic_string::char_traits,class std::allocator > const __thiscall boost::filesystem3::path::string(class std::codecvt const &)const " ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::filesystem3::detail::directory_iterator_inc rement(class boost::filesystem3::directory_iterator &,class boost::system::error_code *)" () referenced in function "private:void __thiscall boost::filesystem3::directory_iterator::increment( void)" ()
  1>libboost_log-vc100-mt-gd-1_47.lib(text_file_backe nd.obj) : error LNK2019: unresolved external symbol "class boost::system::error_code __cdecl boost::filesystem3::detail::dir_itr_close(void * &)" () referenced in function "public: __thiscall boost::filesystem3::detail::dir_itr_imp::~dir_itr_ imp(void)" ()
  1>e:\demo\boost\Debug\log.exe : fatal error LNK1120: 24 unresolved externals
  ========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========
  解决方案已找到.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics