Hello, I downloaded teh 1.5 version and tried to set it up with DevC++ 5. Everything is working great except one weird error; I get an Already Defined error message for invSqrt function, this only comes up when I include 'hgeparticle.h' in various source files. When I only include that file ones, everything is fine, but when I include it again somewhere else, I get that error. This did not happen in VS.NET, but DevC++ seems to be unforgiving for those types of things.
Including the same file twice in a row in the same CPP file does not give error, only when trying to include it in other source files the wrror comes up. Only for hgeparticle.h, other includes are perfectly fine. I thought somethng was wrong with #ifndef, but no other file does this, any clues?
Here are the errors: C:\Documents and Settings\dsafro\Desktop\RoX\source\CGameState.o(.text+0x8) In function `Z7InvSqrtf':
22 C:\hge15\include\hgevector.h multiple definition of `InvSqrt(float)'
22 C:\Documents and Settings\dsafro\Desktop\RoX\source\main.o(.text+0x8):C:\hge15\include\hgevector.h first defined here
so everything works without the particle.h file being defines multiple times, any ideas?
This is due to last-time fix I introduced to support borland compilers. Just add "inline" specification before InvSqrt declaration in hgevector.h to fix this. Or move the function body to separate cpp file and leave just the declaration itself in hgevector.h