I'm currently trying to make a simple game with SDL and Box2D. Unfortunately, the code I added to get the characters to shoot proyectiles is so buggy that I canβt even count the errors. To handle this, I added code to display some debugging information in the game. Unfortunately, after fixing all the errors, a strange error occurred that did not appear before:
/usr/include/SDL/SDL_image.h|34|error: expected initializer before 'extern'| ||=== Build finished: 1 errors, 0 warnings ===|
Code in SDL_image.h that calls this:
#ifdef __cplusplus extern "C" { #endif
I have no idea why this error message appears or how to solve it. There are no error messages in my code. I donβt think that something is wrong with the library, because in another game I just compiled the file. This is the only error that appears.
source share