Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/146.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++ 日食+;ubuntu上的SDL-can';我做不到_C++_Linux_Eclipse_Ubuntu_Sdl - Fatal编程技术网

C++ 日食+;ubuntu上的SDL-can';我做不到

C++ 日食+;ubuntu上的SDL-can';我做不到,c++,linux,eclipse,ubuntu,sdl,C++,Linux,Eclipse,Ubuntu,Sdl,我有最新的ubuntu官方版本(11.10)和最新的eclipse官方版本(Indigo Service release 2)。 我需要在eclipse上安装这两个SDL并开始为android开发它,但首先我需要在桌面环境中测试它 我试过SDL 出于某种原因,尽管本教程非常新,但我找不到将“SDL”字符串放入何处。我在“C/C++构建”部分中搜索了所有地方,但没有找到任何与库和/或链接器相关的内容。 我试着把它放到: "C/C++ General"->"Paths and Symbols"

我有最新的ubuntu官方版本(11.10)和最新的eclipse官方版本(Indigo Service release 2)。 我需要在eclipse上安装这两个SDL并开始为android开发它,但首先我需要在桌面环境中测试它

我试过SDL

出于某种原因,尽管本教程非常新,但我找不到将“SDL”字符串放入何处。我在“C/C++构建”部分中搜索了所有地方,但没有找到任何与库和/或链接器相关的内容。 我试着把它放到:

"C/C++ General"->"Paths and Symbols"->"Libraries" .
下面是我在eclipse上看到的屏幕截图:

但是,它不起作用-在编译时,eclipse会给我错误:

undefined reference to `SDL_Init'
undefined reference to `SDL_Quit'

失败的不是编译,而是链接。那我该怎么办呢?我还注意到项目创建选项“managed make”不可用,因此我使用了“makefile project”。如果你有makefile,你需要修改链接器选项。我不确定什么是managed make,我该怎么做?如果已经有这么多游戏使用SDL,为什么没有关于在eclipse for android上使用SDL的教程呢?