- 论坛徽章:
- 0
|
贴一部分 错误信息吧, 大部分是和SDL 有关的。。
当时直接在宿主机编译的时候 提示需要SDL和 SDL-devel
然后就安装了SDL和SDL-devel在宿主机上 路径为/usr/include/SDL/
改为交叉编译的话,怀疑是因为缺少SDL吧,
是不是因为使用交叉编译 就用不到 /usr/include/ 下的头文件呢???
In file included from /usr/include/SDL/SDL_events.h:32,
from /usr/include/SDL/SDL.h:35,
from /usr/include/SDL/SDL_image.h:30,
from gui.h:12,
from spcagui.c:23:
/usr/include/SDL/SDL_mouse.h:40: error: syntax error before "SDL_Rect"
/usr/include/SDL/SDL_mouse.h:40: warning: no semicolon at end of struct or union
/usr/include/SDL/SDL_mouse.h:42: error: syntax error before '*' token
/usr/include/SDL/SDL_mouse.h:42: warning: data definition has no type or storage class
。。。。。
In file included from spcagui.c:23:
gui.h:41: error: syntax error before "SDL_Surface"
gui.h:41: warning: no semicolon at end of struct or union
gui.h:42: warning: data definition has no type or storage class
gui.h:43: error: syntax error before '}' token
gui.h:51: error: syntax error before "SDL_Surface"
。。。。。
spcagui.c:212: error: invalid use of undefined type `struct button'
spcagui.c:213: error: invalid use of undefined type `struct button'
spcagui.c:214: error: invalid use of undefined type `struct button'
spcagui.c:215: error: invalid use of undefined type `struct button'
spcagui.c:216: error: invalid use of undefined type `struct button' |
|