gpt4 book ai didi

C++11 和 Visual Studio - 未解析的外部符号

转载 作者:行者123 更新时间:2023-11-28 06:50:14 25 4
gpt4 key购买 nike

<分区>

我尝试在 Visual Studio 2013 中运行我的 C++ 代码。代码运行在过去的 gcc 4.9

我不知道为什么代码在 Visual Studio 中没有运行。我把代码上传到GitHub上,大家可以看看。请帮我。我真的不知道为什么代码没有在 Visual Studio 中运行。

Error   1   error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,1>::Property<int,1>(class std::function<int __cdecl(void)> const &,class std::function<void __cdecl(int)> const &)" (??0?$Property@H$00@Property@********@@QAE@ABV?$function@$$A6AHXZ@std@@ABV?$function@$$A6AXH@Z@4@@Z) referenced in function _main    C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj   Property
Error 2 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,1>::operator int const (void)" (??B?$Property@H$00@Property@********@@QAE?BHXZ) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 3 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator=(int const &)" (??4?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 4 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator+=(int const &)" (??Y?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 5 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator-=(int const &)" (??Z?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 6 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator*=(int const &)" (??X?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 7 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator/=(int const &)" (??_0?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 8 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator%=(int const &)" (??_1?$Property@H$00@Property@********@@QAEHABH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 9 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,2>::Property<int,2>(class std::function<int __cdecl(void)> const &)" (??0?$Property@H$01@Property@********@@QAE@ABV?$function@$$A6AHXZ@std@@@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 10 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,2>::operator int const (void)" (??B?$Property@H$01@Property@********@@QAE?BHXZ) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 11 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,3>::Property<int,3>(class std::function<void __cdecl(int)> const &)" (??0?$Property@H$02@Property@********@@QAE@ABV?$function@$$A6AXH@Z@std@@@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 12 error LNK2019: unresolved external symbol "public: void __thiscall ********::Property::Property<int,3>::operator=(int)" (??4?$Property@H$02@Property@********@@QAEXH@Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 13 error LNK1120: 12 unresolved externals C:\Users\#######\documents\visual studio 2013\Projects\********\Debug\Property.exe Property

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com