Library for VRPNGenericServer

Making & changing box plugins and external apps
Post Reply
raymondsutjiadi
Posts: 2
Joined: Tue Apr 24, 2018 5:05 am

Library for VRPNGenericServer

Post by raymondsutjiadi »

Dear all,

I am trying to compile the sample code for VRPN Generic Server from here : http://openvibe.inria.fr/vrpn-tutorial- ... -openvibe/

I have configured my Visual Studio 2013 project to include all header files and VRPN library (vrpn.lib, vrpnd.lib, quat.lib, quatd.lib). But when I compile the program, it generates this error messages:

Error 1 error LNK2019: unresolved external symbol "public: static class GenericVRPNServer * __cdecl GenericVRPNServer::getInstance(int)" (?getInstance@GenericVRPNServer@@SAPAV1@H@Z) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 2 error LNK2019: unresolved external symbol "public: void __thiscall GenericVRPNServer::loop(void)" (?loop@GenericVRPNServer@@QAEXXZ) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 3 error LNK2019: unresolved external symbol "public: void __thiscall GenericVRPNServer::addButton(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?addButton@GenericVRPNServer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 4 error LNK2019: unresolved external symbol "public: void __thiscall GenericVRPNServer::changeButtonState(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int)" (?changeButtonState@GenericVRPNServer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HH@Z) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 5 error LNK2019: unresolved external symbol "public: int __thiscall GenericVRPNServer::getButtonState(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?getButtonState@GenericVRPNServer@@QAEHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 6 error LNK2019: unresolved external symbol "public: void __thiscall GenericVRPNServer::addAnalog(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?addAnalog@GenericVRPNServer@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 7 error LNK2019: unresolved external symbol "public: void __cdecl GenericVRPNServer::changeAnalogState(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,...)" (?changeAnalogState@GenericVRPNServer@@QAAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ZZ) referenced in function _main D:\FOLDER\SOURCE_CODE\VRPN3\VRPN3\VRPN.obj VRPN3
Error 8 error LNK1120: 7 unresolved externals D:\FOLDER\SOURCE_CODE\VRPN3\Debug\VRPN3.exe VRPN3

I am suspicious this error appears because my Visual Studio does not find the respective library files. Is there another library that I should include to?

Please help me. Thank you.

jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: Helsinki, Finland

Re: Library for VRPNGenericServer

Post by jtlindgren »

Hi, linker errors can be tricky. These days some vrpn examples are compiled together with openvibe, so if you manage to compile the whole thing, you could look what its linking to (use build.cmd --vsbuild-all to get an .sln) and then adapt to your project.

I'll try to remember check igäf the tutorial is up to date when I return from holidays.


Cheers,
Jussi

Post Reply