I've been getting a compile error in Code::Block
for an SDL_Surface
variable. Strangely enough, this is the first time I have received this kind of error, as I have used this line of code previously and it has worked fine.
One (of several with the same problem) sample line of code that causes this problem is:
extern SDL_Surface *screen;
The resulting error is this:
expected init-declarator before "extern"|
expected `,' or `;' before "extern"|
||=== Build finished: 2 errors, 0 warnings ===|
I tried to understand the error, but I can not tell what it is. Does anyone know what might be wrong?