Hi
I have a program i cant come to terms with..
I get the following error message:
>Sprite.obj : error LNK2005: "union SDL_Event event" (?event@@3TSDL_Event@@A) already defined in main.obj
1>C:\Users\Game\documents\visual studio 2010\Projects\SpaceInvader\Debug\SpaceInvader.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
At first I did:
in main.cpp, and then I did the same in Sprite.h which both main and Sprite.cpp uses.
Then I removed it from main.cpp and just kept it in Sprite.h which did't help to be honest, and now I have no idea what is causing it.
I can also say that in Sprite.cpp I am using event.type to get inputs so I kinda need to have it reachable there.
If you need any specific code tell me.