I'm to use the library, but when I try to compile the program using g++, i get these error messages:
/home/jimakos/Programming/Games/Asteroids/SDL_collide.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:168: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:205: error: expected ‘{’ at end of input
I don't understand what causes them. I would appreciate some help.
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for replying, there was a problem with the library and g++ when I made this post. This problem was however immediately fixed by genjix the newer release of the library, so nothing to worry about.
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm to use the library, but when I try to compile the program using g++, i get these error messages:
/home/jimakos/Programming/Games/Asteroids/SDL_collide.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:168: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/home/jimakos/Programming/Games/Asteroids/SDL_collide.c:205: error: expected ‘{’ at end of input
I don't understand what causes them. I would appreciate some help.
:-)
It If this helps you (in my case it did) change the extension from .c to .cpp so it assumes (even more) it's a C++ code
Thanks for replying, there was a problem with the library and g++ when I made this post. This problem was however immediately fixed by genjix the newer release of the library, so nothing to worry about.
:-)