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&r1=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.) -- Giel
linker command: g++ -m32 -DVERSION=\"2.0.4\" -DYY_STATIC -I.. -I../.. -IC:\Warzone-DevPkg/include -fpermissive -Wall -O0 -g3 -DDEBUG -mwindows -DWIN32 -o warzone2100.exe ai.o aiexperience.o astar.o action.o advvis.o atmos.o bridge.o buildpos.o cdspan.o cheat.o cluster.o cmddroid.o combat.o component.o console.o data.o design.o difficulty.o disp2d.o display.o droid.o e3demo.o edit2d.o edit3d.o effects.o environ.o fpath.o feature.o findpath.o formation.o frontend.o gateway.o gatewayroute.o gatewaysup.o geometry.o group.o hci.o init.o intdisplay.o intimage.o intorder.o intelmap.o keybind.o keymap.o level_lexer.o levels.o lighting.o loop.o map.o mapdisplay.o mapgrid.o mechanics.o message.o miscimd.o move.o multiint.o multimenu.o multiopt.o multisync.o multibot.o multistat.o objmem.o objects.o optimisepath.o order.o player.o powercrypt.o radar.o raycast.o research.o scores.o scriptai.o scriptcb.o scriptextern.o scriptfuncs.o scriptobj.o scripttabs.o scriptvals.o scriptvals_parser.o scriptvals_lexer.o selection.o stats.o text.o texture.o transporter.o visibility.o warcam.o wrappers.o ani.o arrow.o aud.o audio_id.o bucket3d.o clparse.o configuration.o csnap.o display3d.o drive.o function.o game.o ingameop.o keyedit.o loadsave.o main.o mission.o multigifts.o multijoin.o multilimit.o multiplay.o multistruct.o oprint.o power.o projectile.o seqdisp.o structure.o target.o warzoneconfig.o ../win32/warzone2100.o ../lib/libframework.a ../lib/libgamelib.a ../lib/libivis_common.a ../lib/libivis_opengl.a ../lib/libnetplay.a ../lib/libscript.a ../lib/libsequence.a ../lib/libsound.a ../lib/libwidget.a -LC:\Warzone-DevPkg/lib -lmingw32 -lglu32 -lopengl32 -lopenal32 -ljpeg6b -lpng13 -lmad -lvorbisfile -lvorbis -logg -lphysfs -lSDLmain -lSDL -lSDL_net stderr: scriptcb.o(.bss+0x0): In function `Z15scrCBDroidTakenv': C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptcb.c:55: multiple definition of `result' scriptai.o(.bss+0x0):C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptai.c:35: first defined here scriptfuncs.o(.bss+0x0): In function `strncasecmp': C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptfuncs.c: multiple definition of `result' scriptai.o(.bss+0x0):C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptai.c:35: first defined here scriptobj.o(.bss+0x0): In function `Z13scrBaseObjGetj': C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptobj.c:35: multiple definition of `result' scriptai.o(.bss+0x0):C:/Documents and Settings/Giel van Schijndel/Mijn documenten/C++/warzone/src/scriptai.c:35: first defined here collect2: ld returned 1 exit status
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
