linker error 2019 in visual studio 10

岁酱吖の 提交于 2019-12-24 16:16:07

问题


I was trying to compile a vc++ project on pclsceleton tracking but got the following errors inspite of the fact that i have already included header files for them the code for which the error gives is-

// Callback: New user was detected
    void XN_CALLBACK_TYPE User_NewUser(xn::UserGenerator& generator, XnUserID nId, void* pCookie) 
{
    printf("New User %d\n", nId);
    userGenerator.GetSkeletonCap().RequestCalibration(nId, TRUE);

    osc::OutboundPacketStream p( osc_buffer, OUTPUT_BUFFER_SIZE );
    p << osc::BeginBundleImmediate;
    p << osc::BeginMessage( "/new_user" );
    p << (int)nId;
    p << osc::EndMessage;
    p << osc::EndBundle;
    transmitSocket->Send(p.Data(), p.Size());
}

// Callback: An existing user was lost
void XN_CALLBACK_TYPE User_LostUser(xn::UserGenerator& generator, XnUserID nId, void* pCookie) {
    printf("Lost user %d\n", nId);

    if (kitchenMode) return;

    osc::OutboundPacketStream p( osc_buffer, OUTPUT_BUFFER_SIZE );
    p << osc::BeginBundleImmediate;
    p << osc::BeginMessage( "/lost_user" );
    p << (int)nId;
    p << osc::EndMessage;
    p << osc::EndBundle;
    transmitSocket->Send(p.Data(), p.Size());
}

// Callback: Detected a pose
void XN_CALLBACK_TYPE UserPose_PoseDetected(xn::PoseDetectionCapability& capability, const XnChar* strPose, XnUserID nId, void* pCookie) 
{
    printf("Pose %s detected for user %d\n", strPose, nId);
    userGenerator.GetPoseDetectionCap().StopPoseDetection(nId);
userGenerator.GetSkeletonCap().RequestCalibration(nId, TRUE);
}

the error is as follows-

Error   54  error LNK2019: unresolved external symbol "public: __cdecl osc::OutboundPacketStream::~OutboundPacketStream(void)" (??1OutboundPacketStream@osc@@QEAA@XZ) referenced in function "void __cdecl User_NewUser(class xn::UserGenerator &,unsigned int,void *)" (?User_NewUser@@YAXAEAVUserGenerator@xn@@IPEAX@Z)   G:\project\pclsceleton\build\pclsceleton.obj    pclsceleton

Error   55  error LNK2019: unresolved external symbol "public: void __cdecl UdpSocket::Send(char const *,int)" (?Send@UdpSocket@@QEAAXPEBDH@Z) referenced in function "void __cdecl User_NewUser(class xn::UserGenerator &,unsigned int,void *)" (?User_NewUser@@YAXAEAVUserGenerator@xn@@IPEAX@Z)  G:\project\pclsceleton\build\pclsceleton.obj    pclsceleton


Error   56  error LNK2019: unresolved external symbol "public: char const * __cdecl osc::OutboundPacketStream::Data(void)const " (?Data@OutboundPacketStream@osc@@QEBAPEBDXZ) referenced in function "void __cdecl User_NewUser(class xn::UserGenerator &,unsigned int,void *)" (?User_NewUser@@YAXAEAVUserGenerator@xn@@IPEAX@Z)   G:\project\pclsceleton\build\pclsceleton.obj    pclsceleton

来源:https://stackoverflow.com/questions/16855476/linker-error-2019-in-visual-studio-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!