Error LNK2019: unresolved external symbol when compile

NatNet, VRPN, TrackD, and Plugins
Post Reply
thepbac
Posts: 5
Joined: Thu Apr 16, 2015 7:03 pm

Error LNK2019: unresolved external symbol when compile

Post by thepbac »

Hi everyone.
I want to intergared the NatNetSDK Library into a another software (in plugins type of this software). I decied that the SimpleClient in example SDK's folder is very usefull with me.

When I did as the follow guide to create my plugins, I have check very carefull about how to use the NatNet SDK :
https://wiki.optitrack.com/index.php?ti ... pplication

But when I using VS2010, C++ to compiled the coed, I alway get this error:

Error 13 error LNK2019: unresolved external symbol "public: enum ErrorCode __cdecl NatNetClient::Disconnect(void)" (?Disconnect@NatNetClient@@QEAA?AW4ErrorCode@@XZ) referenced in function "public: enum ErrorCode __cdecl NatNetClient::Uninitialize(void)" (?Uninitialize@NatNetClient@@QEAA?AW4ErrorCode@@XZ) C:\Program Files\vizrt\Viz3\plugin\src\examples\optitrack_plugin\Rectangle.obj

I have searching in google, event read many threads in this forum but cannot solve my problem.
I have attach the images and source code in this thread to help you understand what I meeting.



Pls help me to solve this question.
Thank you so much.
Attachments
use_natnet1.PNG
use_natnet1.PNG (41.99 KiB) Viewed 2033 times
addtionInclude.PNG
addtionInclude.PNG (57.72 KiB) Viewed 2033 times
code, error image
code, error image
err.PNG (109.03 KiB) Viewed 2033 times
Post Reply