I am trying to compile a game source and it seems that my gRace.cpp file should be excluded. Or something else because it keeps returning unspecified reference errors for all my GRAS class methods.
libtron.a (libtron_a-gGame.o): In the function `gGame :: StateUpdate () ': gGame.cpp: (.text + 0x99e 9):` GRAS :: reset ( ) in the undefined for 'reference' libtron.a (libtron_a-gGame.o): Fnkshn` gGame :: analysis (float) ': gGame.cpp :(. text + 0xad48): `Jiarsi :: sync (Int, Int , Int) of undefined terms 'gGame.cpp :( for. text + 0xad4d): `GRAS :: Difon (of undefined terms' 'gGame.cpp for') :(. text + 0xad61): undefined increase of` glory Reference :: Winner () '. gGame.cpp :( text + 0xb786): undefined reference increase `the glory :: end () 'libtron.a (libtron_a-gWinZone.o): gWinZoneHack in` function:: OnEnter (gCycle *, boat). gWinZone.cpp :( text + 0x9206): `Grace :: ZoneHit (ePlayerNetID *) gWinZoneHack the undefined terms' libtron.a (libtron_a-gWinZone.o):` function: Jivin Jonhak (Igreed * Ikord C onst & Amp;, bool) ':. gWinZone.cpp :( text + 0xda96): `Grace :: NewZone (gWinZoneHack *) the undefined terms 'libtron.a (libtron_a-gWinZone.o): function Men` gWinZoneHack :: gWinZoneHack ('.: :( text gWinZone. cpp + 0xdcc6): `grace :: NewZone (gWinZoneHack *) the undefined terms' eGrid *, eCoord constant & amp;, bool) collect2: ld returned exit status 1 I Including the gRace.h file in both files:
#include "gRace.h" Any ideas what may be Can not process it?
Unless the header file is included, the undefined function will be the cause of the compiler errors. These are Linker errors, which means that the actual source file is not being linked to other files (i.e. it is not true that you include gRace.h in the correct code). Check your build script to make sure gRace.cpp is being properly linked
Comments
Post a Comment