- 浏览: 30275 次
最新评论
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 ==========
解决方案已找到.
发表评论
-
C/E盘各目录及Private文件夹详解
2012-01-20 10:59 740C/E盘各目录及Private文件夹详解 2011年09月2 ... -
中航工业洪都交付C919大飞机机身等直段部段
2012-01-20 10:59 858中航工业洪都交付C919大 ... -
I2C―― C程序
2012-01-20 10:59 1172I2C―― C程序 2012年01月09日 一、 ... -
C# 绑定值设定格式
2012-01-20 10:59 823C# 绑定值设定格式 2012年01月17日 1。日期格 ... -
Solaris 10 U5的一个Xerror,是否是显卡未识别?
2012-01-19 15:54 1068Solaris 10 U5的一个Xerror,是否是显卡未识别 ... -
mysql pid file not found and can't connect to mysql through socket mysql.sock
2012-01-19 15:54 677mysql pid file not found and ca ... -
用断言风格写验证平台的基本方法
2012-01-19 15:54 1147用断言风格写验证平台的基本方法 22小时前 终于在Sy ... -
sco unix ftp 源代码
2012-01-19 15:54 861sco unix ftp 源代码 2012年01月08日 ... -
山寨宝马成卖点 中华V5市场展望
2012-01-17 05:47 563山寨宝马成卖点 中华V5 ... -
长安逸动 售价或与宝骏630持平
2012-01-17 05:47 718长安逸动 售价或与宝骏 ... -
商业地产招商的十大误区(转)
2012-01-17 05:47 598商业地产招商的十大误区(转) 2011年11月25日 很 ... -
现场奖品领取:11月24日,北语,法国美酒与日本寿司的对话
2012-01-17 05:40 718现场奖品领取:11月24日,北语,法国美酒与日本寿司的对话 ... -
礼制”思想的阐述
2012-01-16 04:33 768礼制”思想的阐述 2010 ... -
我为什么要找河南女人做老婆
2012-01-16 04:33 16275我为什么要找河南女人做老婆 2010年12月29日 ... -
[逸闻趣谈]中国42个城市在一个班级里的职务-----看到台北,我自己都忍不住笑了
2012-01-16 04:33 623[逸闻趣谈]中国42个城市在一个班级里的职务-----看到台北 ... -
南怀瑾-解读佛教的孝道(下)
2012-01-16 04:33 517南怀瑾-解读佛教的孝道(下) 2012年01月05日 ...
相关推荐
All Operating Systems (Generic) (Architecture Independent), Compressed TAR Archive Includes Boost Headers (mysql-boost-8.0.31.tar.gz)
C++实验性内容:异步HTTP客户端(boost.asio、boost.spirit、boost.log)
mysql-boost-5.7.20.tar.gz源码包,用于编译安装,安装步骤可以看本人之前博客,有详细步骤及解释
mysql-boost-8.0.27.tar.gz
mysql-boost-5.7.10.tar.gz源码包
Boost.Asio.C++.Network.Programming.,想了解的可以看看
mysql-boost-5.7.17.tar.gz
mysql mysql-boost-5.7.27.tar.gz
安装包
MySQL是一个关系型数据库管理系统,由瑞典MySQL AB 公司开发,属于 Oracle 旗下产品。MySQL 是最流行的关系型数据库管理系统之一,在 WEB 应用方面,MySQL是最好的 RDBMS (Relational Database Management System,...
翻译了“Overview”、“Using Boost.Asio”、“Tutorial”、“Examples”的完整章节。 [“Networking TS compatibility”](https://www.boost.org/doc/libs/1_72_0/doc/html/boost_asio/net_ts.html)的第二个表格未...
离线安装包,亲测可用
该资源是带有boost库的mysql,mysql-boost-5.7.20.tar.gz源码包,用于编译安装,安装步骤可以看我之前博客,有详细步骤,用于lnmp环境搭建
mysql5.7.30源码内含boost库,结合博主的安装教程可实现mysql5.7.30源码安装。
boost log的封装,使用更简洁,log.cpp log.h 加入到工程中,在要打印的地方添加LOG就行,详细调用见logger.txt
C++RPC基于boost.asio、boost.serialization等boost库进行反射
最新boost库..................
Boost.Asio.C++.Network.Programming 2013
在boost中有自带的日志库供开发人员使用但效率不是最高的: 加入头文件#include 即可引入日志库 boost中的log库有以下六种级别: BOOST_LOG_TRIVIAL(trace) << A trace severity message; BOOST_LOG_TRIVIAL...
最新boost库..................