【发布时间】:2017-10-26 14:29:05
【问题描述】:
我目前正在浏览该网站的 SDL 教程:
(http://lazyfoo.net/tutorials/SDL/01_hello_SDL/linux/index.php),
使用 Windows 10 上的 Bash 作为平台。我已经使用apt-get install libsdl2-dev
安装了 SDL 包
并能够编译课程源代码 (http://lazyfoo.net/tutorials/SDL/01_hello_SDL/01_hello_SDL.zip)
使用g++ 01_hello_SDL.cpp -w -lSDL2 -o 01_hello_SDL。
但是,当我使用./01_hello_SDL 运行可执行文件时,程序打印出SDL could not initialize! SDL_Error: Failed to connect to the Mir Server。有谁知道这个问题的解决办法吗?
【问题讨论】:
-
已经尝试过这些解决方案。什么都没有。
标签: c++ sdl sdl-2 windows-subsystem-for-linux