Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/147.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 跳跃运动C++;图书馆不被承认?_C++_Dll_Visualizer_Leap Motion - Fatal编程技术网

C++ 跳跃运动C++;图书馆不被承认?

C++ 跳跃运动C++;图书馆不被承认?,c++,dll,visualizer,leap-motion,C++,Dll,Visualizer,Leap Motion,我一直在用Java玩跳跃运动,它很好。。但是我试图用C++代替,但是我似乎不能让它工作。我正在使用Visual Studio 2012并正确设置库和包含目录。 尽管如此,我总是以以下错误告终: 1>Sample.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall Leap::Interface::~Interface(void)" (__im

我一直在用Java玩跳跃运动,它很好。。但是我试图用C++代替,但是我似乎不能让它工作。我正在使用Visual Studio 2012并正确设置库和包含目录。 尽管如此,我总是以以下错误告终:

1>Sample.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall Leap::Interface::~Interface(void)" (__imp_??1Interface@Leap@@MAE@XZ) referenced in function "public: virtual __thiscall Leap::FingerList::~FingerList(void)" (??1FingerList@Leap@@UAE@XZ)
这只是其中一个错误,但我最终得到了50(这意味着LeapMotion无法识别任何函数,尽管可视化工具确实显示了数据)

有人能帮我吗

谢谢

我遇到了同样的问题。 我设置了库和include文件夹以及输入lib文件,但由于设置了调试模式,所以一直得到错误(未解析的符号)。 您必须在Win32或x64之间进行选择,并使用Leap SDK中提供的特定库。 这就解决了问题。
虽然我的机器是64位的,但在Configuration Manager上我已经调试了Win32,因为我使用的不仅仅是Leap Motion设备,还有Cinder。

对于其他在这个问题上遇到困难的人,这里有更多关于在Visual Studio中设置Leap Motion项目的文档:


我不知道leap motion,但您是否也在project settigns->linker->input下设置了附加依赖项?设置库目录可能不够。问题是否已解决?Alexander是对的,您需要指定在“项目设置->链接器->输入”下使用的确切lib文件以抑制链接器错误。