【发布时间】:2009-04-12 04:30:40
【问题描述】:
我在Code::Block 中遇到SDL_Surface 变量的编译错误。奇怪的是,这是我第一次收到这种错误,因为我之前使用过这行代码,并且运行良好。
导致此问题的一个(几个具有相同问题的)示例代码行是:
extern SDL_Surface *screen;
产生的错误是这样的:
expected init-declarator before "extern"|
expected `,' or `;' before "extern"|
||=== Build finished: 2 errors, 0 warnings ===|
我试图理解错误,但我不知道它是什么。有谁知道可能出了什么问题?
【问题讨论】:
标签: sdl extern compiler-errors