sdl - 无法使用 Visual C++ 2010 Express Edition 编译 SDL 项目(链接器错误)

标签 sdl linker-errors visual-studio-express visual-c++-2010 visual-c++-2010-express

我正在尝试在 Visual Studio C++ Express Edition 中编译示例 SDL 项目。我有以下链接器错误:

LINK : fatal error LNK1104: cannot open file 'SDL.lib SDLmain.lib'

这里的问题是:我将库添加到链接器部分(附加依赖项)的输入中。如果我将它们添加到项目中,为什么会出现这样的问题?

在 VC++ 目录中,我将库目录添加到库目录值中。

最佳答案

您是否将这些库的位置添加到项目属性中 Linker/General 页面上的 Additional Library Directories

关于sdl - 无法使用 Visual C++ 2010 Express Edition 编译 SDL 项目(链接器错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9633787/

相关文章:

c++ - 链接 V8 时 undefined reference

c++ - VC2008 整个程序优化失败

c++ - 为什么 OpenGL 着色器无法正确编译?

ffmpeg - 将 SDL 帧发送到另一个进程并显示它

c++ - 什么是 undefined reference /未解析的外部符号错误,我该如何解决?

database - 如何在 visual studio (express) 中生成数据库模式图?

f# - 如何在不购买 Visual Studio 的情况下编译 F# 项目

MySQL .Net Provider 5.2 未显示在 VS 2008 Express 的数据源对话框中

c++ - '"SDL.h"编译时找不到这样的文件或目录

c++ - 将 SDL 示例移植到 OpenGL 和 C++