我刚刚下载了快板库
我创建一个新的空项目,然后添加一个源文件
我添加这行代码:
#include <allegro.h>
我编译并得到以下错误:
c:\allegro\include\allegro5\internal\alconfig.h(28) : 致命错误 C1083: 无法打开包含文件: 'allegro5/platform/alplatf.h': 没有这样的文件或目录
所以我进入 alconfig.h 并更改:
#include "allegro5/platform/alplatf.h"
至:
#include "../../allegro5/platform/alplatf.h.cmake"
它现在给了我这个错误:
c:\allegro\include\allegro5\platform\alplatf.h.cmake(2) : 致命错误 C1021: invalid preprocessor command 'cmakedefine'
所以我摆脱了它然后说的#include "../../allegro5/platform/alplatf.h.cmake"
声明:
c:\allegro\include\allegro5\internal\alconfig.h(57) : 致命错误 C1189: #error : 不支持平台
我不知道从那里去,我正在运行 Windows,所以我真的很难过