Hopefully someone can explain where I'm going wrong. I'm incredibly rusty at writing in C++ and I'm having trouble trying to add my own custom function.
Currently in igame.h I've added after the the suicide function:
Code: Select all
extern void customfunction(physent *d);
Code: Select all
void customfunction(physent *d)
{
//implementation code to go here
}
Code: Select all
game::customfunction(pl)
.objs\engine\physics.o:physics.cpp|| undefined reference to `game::customfunction(physent*)'|
I'm guessing I'm not fully understanding the language. Could someone explain what is causing the error?
Cheers,
Denyer