It looks like you're using the traditional ifndef/define/endif block wrong.
It should be #ifndef SOME_STUFF_H #define SOME_STUFF_H // class definition here #endif // SOME_STUFF_H Yours is #ifndef SOME_STUFF_H #define SOME_STUFF_H #endif // SOME_STUFF H // class definition here So on a non windows system your class will be defined multiple times depending on how many files are #include'ing the .h file -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emiel Regis Sent: Monday, March 05, 2007 11:54 To: [email protected] Subject: [hlcoders] Some problems Hey, I encountered some problems with my code and would ask any of you for some help. I've been trying to implement a CTF mode lately on following basis: -we got ctf_flag model entity that can be carried, gets you points,etc. -we got ctf_flagspawn brush entity, which handles flag respawns, point handling, etc. Yet after some work I did get some problems - I bet most of them seem easy to solve for you, but sorry for my lack of knowledge - I've been working in C whole my life and this is my first big C++ project ;-) Since the code is quite long, I've decided to use paste place rather than extremely long messages. ctf_flagblue.cpp - http://rafb.net/p/EqW6Gm37.html ctf_flagblue.h - http://rafb.net/p/UZg80h26.html ctf_flagspawn.cpp - http://rafb.net/p/qCPkyB22.html Problems I get: - using CBlue->Respawn() in ctf_flagspawn.cpp gives me some compile errors, is there something I do bad about initializing it? - putting prototypes of class in ctf_flagblue.h gives me many compile errors aswell (about class redefinition, etc.), I followed the way other CItems are headered, still no luck though - do I need to put the code somewhere in the standard HL2 files or simply putting an FGD entry in Hammer is enough? Again, sorry for my stupidity and thanks in advance :P Regards, Emiel Regis The New Era team _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

