【发布时间】:2025-11-30 16:40:01
【问题描述】:
我想我已经正确安装了 SDL,但我找不到像 import Pygamein python 这样的检查方法。我正在使用 Ubuntu 13.04。这是我的 C++ 代码#include "SDL/SDL.h" 中的标头。当我在代码目录中运行g++ -Test -o "testcode" "lesson02.cpp" 时,我得到/usr/bin/ld: cannot open linker script file est: No such file or directory。我正在尝试遵循惰性 Foo 的教程,但编译并没有真正涵盖,我迷路了。我是否需要在我的编译命令中编写其他内容来包含 SDL? SDL 是否安装不正确?我的包含行有问题吗?
【问题讨论】:
标签: c++ compiler-construction compiler-errors g++ sdl