Am Sonntag, 19. November 2006 18:06 schrieb Giel van Schijndel: > Troman schreef: > > Let me know if 'last_called_script_event' warnings are still there. > > I'm not sure what's wrong with 'result' though, maybe i'm just blind > > or linker is going berserk. > > > > Troman > > The `result' errors are still there. > > The main difference there that causes these linker errors seems to be > the tight integration of `INTERP_VAL result' in these files: > src/scriptai.c src/scriptcb.c src/scriptfuncs.c src/scriptobj.c > > Just look through this diff: > http://svn.gna.org/viewcvs/warzone/trunk/src/scriptai.c?rev=488&view=diff&r >1=488&r2=487&p1=trunk/src/scriptai.c&p2=/trunk/src/scriptai.c > > You'll see that `result' is being used quite heavily to replace numerous > variables, it seems however that the linker is trying to assign the > exact same memory address to these instances of `result', which is in > effect triggering the linker errors. (Or something like it, I believe > I've stated before I'm far from an expert on fixing linker errors.) The "result" didn't look static. Which means that it becomes a global symbol, which then clashes with the other global "result" symbols in the other files... No magic involved. Just mark that result static and the linker errors will go away.
--Dennis PS: You may hit me if I'm wrong. ;)
pgpNrsUnJ47V7.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev