简体   繁体   English

使用Visual Studio 2015将SDK链接到项目中

[英]Linking an SDK into a project with Visual Studio 2015

so super newbie question, as I've not much experience using outside SDKs - 超级新手问题,因为我没有使用外部SDK的丰富经验-

I'm trying to include the NVidia FleX SDK into my project, and I'm getting linker errors when calling any of the library's functions. 我试图将NVidia FleX SDK包含到我的项目中,并且在调用该库的任何函数时遇到链接器错误。

In my Project Settings, I have in my Include Directories a path pointing to the header file that I need. 在我的项目设置中,我的包含目录中有一个指向我所需的头文件的路径。 Under Library Directories, I have a path pointing to the library that it uses. 在库目录下,我有一个指向它使用的库的路径。

There's also a bin folder I'm not too sure what to do with - it holds the dll that the library uses. 还有一个我不太确定该怎么做的bin文件夹-它包含该库使用的dll。 I've used the FBX SDK before, which didn't have a bin folder or DLL that needed to be linked. 我以前使用过FBX SDK,它没有需要链接的bin文件夹或DLL。

If I use 如果我用

#pragma comment( lib, "flexDebug_x86" )

The linker doesn't complain, but running it produces an error saying that it can't find the DLL. 链接器没有抱怨,但是运行它会产生一个错误,指出它找不到DLL。 I've tried putting the path to the DLL under Library Directories - not sure where that should actually go. 我试过将DLL的路径放在“库目录”下-不确定应该实际去哪里。

Thank you! 谢谢!

You have to copy the DLLs to your VS Project Path. 您必须将DLL复制到VS项目路径。 Or you put the path to the DLL into Computer Environment Path. 或者,您将DLL的路径放入“计算机环境路径”中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM