无法打开文件“SDL2.lib" [英] cannot open file 'SDL2.lib'

查看:192
本文介绍了无法打开文件“SDL2.lib"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的 Visual C++ 2012 项目中打开 sdl2,但我不断收到此错误:

I am trying to open sdl2 in my project on Visual C++ 2012 but i keep getting this error:

错误 LNK1104:无法打开文件SDL2.lib"

error LNK1104: cannot open file 'SDL2.lib'

我添加了额外的库和包含文件夹,但没有运气..我通过链接器添加了到库的链接,但我得到了同样的错误..

I added the additional libraries and include folder but no luck.. I added the link to the libraries through the linker but i get the same error..

我该怎么办?

推荐答案

我指的是 VS 2010,但我之前读过一些人在他们的项目属性中使用 VC++ 目录而不是链接器时遇到了错误-> 常规-> 其他库目录.

I'm referencing VS 2010, but I've read before that some people have had errors when using the VC++ Directories in their project properties as opposed to the Linker->General->Additional Library Directories.

不幸的是,除了确保正确链接目录之外,真的没有什么可做的了.这个问题真的只有一个答案.这也可能取决于您选择的 SDL 下载,您是下载开发库还是二进制文件?

Unfortunately, there really isn't much more to do besides making sure the directories are linked properly. There really is only one answer to this question. It also may depend on the download of SDL you chose, are you donwloading the Development Library as opposed to the binary?

这篇关于无法打开文件“SDL2.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆