Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2019 - FreeOpcUa - comile/link errors #378

Open
kburndred opened this issue Dec 16, 2020 · 0 comments
Open

Visual Studio 2019 - FreeOpcUa - comile/link errors #378

kburndred opened this issue Dec 16, 2020 · 0 comments

Comments

@kburndred
Copy link

I get the following errors during the link process.
I am trying to compile and link from within Visual Studio 2019

Rebuild started...
1>------ Rebuild All started: Project: OPCUAServer, Configuration: Release Win32 ------
1>OPCUAServer.cpp
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits > & __cdecl OpcUa::operator<<(class std::basic_ostream<char,struct std::char_traits > &,class OpcUa::Node const &)" (??6OpcUa@@yaaav?$basic_ostream@DU?$char_traits@D@std@@@std@@aav12@ABVNode@0@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: static struct OpcUa::DateTime __cdecl OpcUa::DateTime::Current(void)" (?Current@DateTime@OpcUa@@sa?AU12@XZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class OpcUa::Node __thiscall OpcUa::Node::AddMethod(unsigned int,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::function<class std::vector<class OpcUa::Variant,class std::allocator > __cdecl(struct OpcUa::NodeId,class std::vector<class OpcUa::Variant,class std::allocator >)>)const " (?AddMethod@Node@OpcUa@@qbe?AV12@IABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@v?$function@$$A6A?AV?$vector@VVariant@OpcUa@@v?$allocator@VVariant@OpcUa@@@std@@@std@@UNodeId@OpcUa@@v12@@z@4@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class OpcUa::Node __thiscall OpcUa::Node::AddVariable(unsigned int,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class OpcUa::Variant const &)const " (?AddVariable@Node@OpcUa@@qbe?AV12@IABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@ABVVariant@2@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class OpcUa::Node __thiscall OpcUa::Node::AddObject(struct OpcUa::NodeId const &,struct OpcUa::QualifiedName const &)const " (?AddObject@Node@OpcUa@@qbe?AV12@ABUNodeId@2@ABUQualifiedName@2@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::Node::SetValue(class OpcUa::Variant const &)const " (?SetValue@Node@OpcUa@@QBEXABVVariant@2@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class std::vector<class OpcUa::Node,class std::allocator > __thiscall OpcUa::Node::GetChildren(void)const " (?GetChildren@Node@OpcUa@@qbe?AV?$vector@VNode@OpcUa@@v?$allocator@VNode@OpcUa@@@std@@@std@@xz)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::Node::Node(class OpcUa::Node const &)" (??0Node@OpcUa@@QAE@ABV01@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: struct OpcUa::NodeId & __thiscall OpcUa::NodeId::operator=(struct OpcUa::NodeId const &)" (??4NodeId@OpcUa@@QAEAAU01@ABU01@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::NodeId::NodeId(struct OpcUa::NodeId const &)" (??0NodeId@OpcUa@@QAE@ABU01@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::NodeId::NodeId(enum OpcUa::ObjectId)" (??0NodeId@OpcUa@@QAE@W4ObjectId@1@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::NodeId::NodeId(unsigned int,unsigned short)" (??0NodeId@OpcUa@@QAE@IG@Z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::Event::Event(struct OpcUa::NodeId const &)" (??0Event@OpcUa@@QAE@ABUNodeId@1@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::TriggerEvent(class OpcUa::Event)" (?TriggerEvent@UaServer@OpcUa@@QAEXVEvent@2@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class OpcUa::Node __thiscall OpcUa::UaServer::GetObjectsNode(void)const " (?GetObjectsNode@UaServer@OpcUa@@qbe?AVNode@2@XZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: class OpcUa::Node __thiscall OpcUa::UaServer::GetRootNode(void)const " (?GetRootNode@UaServer@OpcUa@@qbe?AVNode@2@XZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::Stop(void)" (?Stop@UaServer@OpcUa@@QAEXXZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::Start(void)" (?Start@UaServer@OpcUa@@QAEXXZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall OpcUa::UaServer::RegisterNamespace(class std::basic_string<char,struct std::char_traits,class std::allocator >)" (?RegisterNamespace@UaServer@OpcUa@@QAEIV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::EnableEventNotification(void)" (?EnableEventNotification@UaServer@OpcUa@@QAEXXZ)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::SetServerURI(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?SetServerURI@UaServer@OpcUa@@QAEXABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpcUa::UaServer::SetEndpoint(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?SetEndpoint@UaServer@OpcUa@@QAEXABV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)
1>OPCUAServer.obj : error LNK2001: unresolved external symbol "public: __thiscall OpcUa::UaServer::UaServer(class std::shared_ptr const &)" (??0UaServer@OpcUa@@QAE@ABV?$shared_ptr@Vlogger@spdlog@@@std@@@z)
1>C:\Users\kim\source\repos\OPCUAServer\Release\OPCUAServer.exe : fatal error LNK1120: 23 unresolved externals
1>Done building project "OPCUAServer.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant