- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在 VS2010 中使用以下代码 - 64 位,我的 boost 库也是 64 位的尽管我在链接器设置中添加了 Boost 库,并且还包含了额外的 header ,但我还是不断收到这些链接器错误。关于如何解决此问题的任何建议?
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <iostream>
#include <sstream>
std::stringstream ss;
//--------------------------------------
class person
{
public:
person()
{
}
person(int age)
: age_(age)
{
}
int age() const
{
return age_;
}
private:
friend class boost::serialization::access;
template <typename Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & age_;
}
int age_;
};
//---------------------------------------
int main(int argc, char** argv)
{
boost::archive::text_oarchive oa(ss);
person p(31);
oa << p;
}
这些是链接器错误
Error 12 error LNK2001: unresolved external symbol "private: virtual char const * __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::get_debug_info(void)const " (?get_debug_info@extended_type_info_typeid_0@typeid_system@serialization@boost@@EEBAPEBDXZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 22 error LNK2001: unresolved external symbol "public: __cdecl boost::archive::archive_exception::archive_exception(class boost::archive::archive_exception const &)" (??0archive_exception@archive@boost@@QEAA@AEBV012@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 11 error LNK2001: unresolved external symbol "public: virtual bool __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::is_equal(class boost::serialization::extended_type_info const &)const " (?is_equal@extended_type_info_typeid_0@typeid_system@serialization@boost@@UEBA_NAEBVextended_type_info@34@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 10 error LNK2001: unresolved external symbol "public: virtual bool __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::is_less_than(class boost::serialization::extended_type_info const &)const " (?is_less_than@extended_type_info_typeid_0@typeid_system@serialization@boost@@UEBA_NAEBVextended_type_info@34@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 21 error LNK2001: unresolved external symbol "public: void __cdecl boost::archive::archive_exception::`vbase destructor'(void)" (??_Darchive_exception@archive@boost@@QEAAXXZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::archive::basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >::~basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >(void)" (__imp_??1?$basic_text_oprimitive@V?$basic_ostream@DU?$char_traits@D@std@@@std@@@archive@boost@@IEAA@XZ) referenced in function "protected: __cdecl boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::~text_oarchive_impl<class boost::archive::text_oarchive>(void)" (??1?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@IEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::archive::detail::basic_oarchive::~basic_oarchive(void)" (__imp_??1basic_oarchive@detail@archive@boost@@IEAA@XZ) referenced in function "public: __cdecl boost::archive::detail::common_oarchive<class boost::archive::text_oarchive>::~common_oarchive<class boost::archive::text_oarchive>(void)" (??1?$common_oarchive@Vtext_oarchive@archive@boost@@@detail@archive@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 9 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::archive::detail::basic_oserializer::~basic_oserializer(void)" (__imp_??1basic_oserializer@detail@archive@boost@@IEAA@XZ) referenced in function "public: virtual __cdecl boost::archive::detail::oserializer<class boost::archive::text_oarchive,class person>::~oserializer<class boost::archive::text_oarchive,class person>(void)" (??1?$oserializer@Vtext_oarchive@archive@boost@@Vperson@@@detail@archive@boost@@UEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 8 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::archive::detail::basic_oserializer::basic_oserializer(class boost::serialization::extended_type_info const &)" (__imp_??0basic_oserializer@detail@archive@boost@@IEAA@AEBVextended_type_info@serialization@3@@Z) referenced in function "public: __cdecl boost::archive::detail::oserializer<class boost::archive::text_oarchive,class person>::oserializer<class boost::archive::text_oarchive,class person>(void)" (??0?$oserializer@Vtext_oarchive@archive@boost@@Vperson@@@detail@archive@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::text_oarchive_impl<class boost::archive::text_oarchive>(class std::basic_ostream<char,struct std::char_traits<char> > &,unsigned int)" (__imp_??0?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@IEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z) referenced in function "public: __cdecl boost::archive::text_oarchive::text_oarchive(class std::basic_ostream<char,struct std::char_traits<char> > &,unsigned int)" (??0text_oarchive@archive@boost@@QEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 13 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::~extended_type_info_typeid_0(void)" (__imp_??1extended_type_info_typeid_0@typeid_system@serialization@boost@@IEAA@XZ) referenced in function "int `public: __cdecl boost::serialization::extended_type_info_typeid<class person>::extended_type_info_typeid<class person>(void)'::`1'::dtor$0" (?dtor$0@?0???0?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ@4HA) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 16 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::extended_type_info_typeid_0(char const *)" (__imp_??0extended_type_info_typeid_0@typeid_system@serialization@boost@@IEAA@PEBD@Z) referenced in function "public: __cdecl boost::serialization::extended_type_info_typeid<class person>::extended_type_info_typeid<class person>(void)" (??0?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 6 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::archive::basic_text_oarchive<class boost::archive::text_oarchive>::newtoken(void)" (__imp_?newtoken@?$basic_text_oarchive@Vtext_oarchive@archive@boost@@@archive@boost@@IEAAXXZ) referenced in function "protected: void __cdecl boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::save<class boost::archive::object_id_type>(class boost::archive::object_id_type const &)" (??$save@Vobject_id_type@archive@boost@@@?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@IEAAXAEBVobject_id_type@12@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 19 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::archive::text_oarchive_impl<class boost::archive::text_oarchive>::save(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?save@?$text_oarchive_impl@Vtext_oarchive@archive@boost@@@archive@boost@@IEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: static void __cdecl boost::archive::save_access::save_primitive<class boost::archive::text_oarchive,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(class boost::archive::text_oarchive &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$save_primitive@Vtext_oarchive@archive@boost@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@save_access@archive@boost@@SAXAEAVtext_oarchive@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 14 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::serialization::extended_type_info::key_register(void)const " (__imp_?key_register@extended_type_info@serialization@boost@@IEBAXXZ) referenced in function "public: __cdecl boost::serialization::extended_type_info_typeid<class person>::extended_type_info_typeid<class person>(void)" (??0?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 24 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::serialization::extended_type_info::key_unregister(void)const " (__imp_?key_unregister@extended_type_info@serialization@boost@@IEBAXXZ) referenced in function "public: __cdecl boost::serialization::extended_type_info_typeid<class person>::~extended_type_info_typeid<class person>(void)" (??1?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 15 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::type_register(class type_info const &)" (__imp_?type_register@extended_type_info_typeid_0@typeid_system@serialization@boost@@IEAAXAEBVtype_info@@@Z) referenced in function "public: __cdecl boost::serialization::extended_type_info_typeid<class person>::extended_type_info_typeid<class person>(void)" (??0?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 23 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __cdecl boost::serialization::typeid_system::extended_type_info_typeid_0::type_unregister(void)" (__imp_?type_unregister@extended_type_info_typeid_0@typeid_system@serialization@boost@@IEAAXXZ) referenced in function "public: __cdecl boost::serialization::extended_type_info_typeid<class person>::~extended_type_info_typeid<class person>(void)" (??1?$extended_type_info_typeid@Vperson@@@serialization@boost@@QEAA@XZ) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 20 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::archive::archive_exception::archive_exception(class boost::archive::archive_exception const &)" (__imp_??0archive_exception@archive@boost@@QEAA@AEBV012@@Z) referenced in function "void __cdecl boost::serialization::throw_exception<class boost::archive::archive_exception>(class boost::archive::archive_exception const &)" (??$throw_exception@Varchive_exception@archive@boost@@@serialization@boost@@YAXAEBVarchive_exception@archive@1@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 18 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::archive::archive_exception::archive_exception(enum boost::archive::archive_exception::_exception_code,char const *,char const *)" (__imp_??0archive_exception@archive@boost@@QEAA@W4_exception_code@012@PEBD1@Z) referenced in function "protected: void __cdecl boost::archive::basic_text_oprimitive<classstd::basic_ostream<char,struct std::char_traits<char> > >::save<class boost::archive::object_id_type>(class boost::archive::object_id_type const &)" (??$save@Vobject_id_type@archive@boost@@@?$basic_text_oprimitive@V?$basic_ostream@DU?$char_traits@D@std@@@std@@@archive@boost@@IEAAXAEBVobject_id_type@12@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 7 error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl boost::archive::detail::basic_oserializer::serialized_as_pointer(void)const " (__imp_?serialized_as_pointer@basic_oserializer@detail@archive@boost@@QEBA_NXZ) referenced in function "public: virtual bool __cdecl boost::archive::detail::oserializer<class boost::archive::text_oarchive,class person>::tracking(unsigned int)const " (?tracking@?$oserializer@Vtext_oarchive@archive@boost@@Vperson@@@detail@archive@boost@@UEBA_NI@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 17 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl boost::archive::archive_exception::`vbase destructor'(void)" (__imp_??_Darchive_exception@archive@boost@@QEAAXXZ) referenced in function "protected: void __cdecl boost::archive::basic_text_oprimitive<class std::basic_ostream<char,struct std::char_traits<char> > >::save<class boost::archive::object_id_type>(class boost::archive::object_id_type const &)" (??$save@Vobject_id_type@archive@boost@@@?$basic_text_oprimitive@V?$basic_ostream@DU?$char_traits@D@std@@@std@@@archive@boost@@IEAAXAEBVobject_id_type@12@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl boost::archive::detail::basic_oarchive::end_preamble(void)" (__imp_?end_preamble@basic_oarchive@detail@archive@boost@@QEAAXXZ) referenced in function "public: static void __cdecl boost::archive::save_access::save_primitive<class boost::archive::text_oarchive,class boost::archive::object_id_type>(classboost::archive::text_oarchive &,class boost::archive::object_id_type const &)" (??$save_primitive@Vtext_oarchive@archive@boost@@Vobject_id_type@23@@save_access@archive@boost@@SAXAEAVtext_oarchive@12@AEBVobject_id_type@12@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl boost::archive::detail::basic_oarchive::save_object(void const *,class boost::archive::detail::basic_oserializer const &)" (__imp_?save_object@basic_oarchive@detail@archive@boost@@QEAAXPEBXAEBVbasic_oserializer@234@@Z) referenced in function "public: static void __cdecl boost::archive::detail::save_non_pointer_type<class boost::archive::text_oarchive>::save_standard::invoke<class person>(class boost::archive::text_oarchive &,class person const &)" (??$invoke@Vperson@@@save_standard@?$save_non_pointer_type@Vtext_oarchive@archive@boost@@@detail@archive@boost@@SAXAEAVtext_oarchive@34@AEBVperson@@@Z) D:\Tproj-0.18\TestProject\QTR\QTR\main.obj QTR
最佳答案
也许您在使用 boost 自动链接链接的库与您明确指定的库之间存在冲突。
定义值 BOOST_ALL_NO_LIB=1 并明确指定所需的库。
另一种选择是使用 boost 自动链接:从链接器选项中删除所有 boost 库并查看任何缺失库的输出(定义 BOOST_LIB_DIAGNOSTIC=1 以获得更详细的输出)
关于c++ - Boost 序列化的链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12937046/
我有一个网站,并且我使用 javascript sdk 添加了“点赞”按钮。 这是代码 (function(d, s, id) { var js, fjs = d.g
我知道 HTML 是逐行读取的。当您链接多个 css 文件(如规范化文件和样式表文件)时,由于 CSS 重要性特异性和源顺序,样式表文件应链接在规范化文件之后。看起来这不会影响链接的 JavaScri
我正在使用官方 Bootstrap site 提供的 CDN 链接在我的网络应用程序中使用面板进行测试 在彻底检查我的代码后,面板没有显示。 但是我在 SO 上看到了类似的帖子并且 CDN 链接不同
这里是编码初学者。我正在尝试为我的移动设备网站设置断点,以便我的网站适合小屏幕。我只是想检查如果我缩小视口(viewport)的宽度,背景颜色是否会改变,但没有发生任何变化。也许我只是对一个简单的错误
举一个我想要的例子,想象一下这个字符串: $text = 'lorem ipsum About us lorem ipsum'; 如果此字符串包含一个 href 以 / 开头的 anchor 链接,则
如何链接到 LaTeX 文档的另一部分或子部分?这种链接的常规范式是什么,像[链接名称]那样写,或者像网页超链接那样写? 最佳答案 链接到另一个部分需要您的部分进行一些额外的标记。要使用的命令是: \
我有一个订单表,其中包含订单号、客户 ID 和代理 ID。然后有一个带有 id 的客户表和一个带有 id 的代理表。 我需要获取所有具有来自代理 ID 'a03' 和代理 ID 'a05' 的订单的客
假设我有: dic = {"z":"zv", "a":"av"} ## Why doesn't the following return a sorted list of keys? keys = d
我在尝试链接到外部库时得到了一些奇怪的结果。如果我从命令行运行以下命令: gcc fftwTest.c -I../extlib/fftw-3.3.5-dll32 -L../extlib/fftw-3.
我认为我没有正确理解 jQuery 链接。我正在遍历一个数组并尝试将 div 元素添加到我的包装器 CSS 类中,每个 div 元素都有一个“click”类和自定义 css top 和 left 属性
HTML 使用超级链接与网络上的另一个文档相连。几乎可以在所有的网页中找到链接。点击链接可以从一张页面跳转到另一张页面。 HTML 超链接(链接) HTML使用标签 a 来设置超文本链接。 超链
这个问题在这里已经有了答案: How do I link to part of a page? (hash?) (7 个答案) Scroll Automatically to the Bottom
我想创建一个 Docker Swarm 集群,运行一个 Elasticsearch 实例、一个 MongoDB 实例和一个 grails 应用程序,每个都在单独的机器上。我正在使用 Docker Ma
我正在尝试将 CakePHP HTML Linker 用于以下代码 Add Cuisine 由于 span 标签需要在 a 标签内。我无法根据需要获得输出。关于如何完成它的任何建议? 最佳答案 禁用链
大家好, 我最近开发了一个应用程序,很快就会提交到 App Store。我想免费提交这个应用程序,并想知道我是否可以实现一个带有 PayPal 捐赠标志的按钮,上面基本上写着“捐赠用于开发”或与此相关
我想尝试在 dlang 中使用 libuv。我下载了这样的 dlang 绑定(bind): git clone git@github.com:tamediadigital/libuv.git 现在我接
我有一个节点(节点 a),各种其他节点(节点 b/c/d/e)与之引用。 我可以创建一个带有参数的 View 作为我正在查看的节点(节点 a),并获取引用该节点的节点列表。 基本上在节点 a 查看节点
我正在尝试建立一个常见问题页面,上面有目录,下面有答案。我想点击目录中的一个问题,并在同一页面上链接到相应的答案。我如何在 CakePHP 中使用 $this->Html->link() 执行此操作方
在 WooCommerce 3.0+ 中,我使用 js 创建了一些选项卡,每个选项卡中包含来自不同类别的产品。我已经设法修改了简单产品的添加到购物车链接,其中点击了 addtocart 按钮它进入下一
Delphi 2007/2009 奇怪的问题在这里: 根据设计时定义的组件属性,是否可以在链接中包含文件或保留文件? 示例:如果我将 SomeProperty 保留为真,则在编译时,单元 SomeUn
我是一名优秀的程序员,十分优秀!