Page 1 of 1
Compiling error message
Posted: Fri Jan 16, 2015 9:44 pm
by hondobondo
">worlda.obj : error LNK2005: _SV_HullPointContents already defined in world.obj"
I started with (i think) baker's visual cpp 8 code and replaced some files with the enhanced glquake diff files. i wouldn't think this should hurt anything.
Re: Compiling error message
Posted: Fri Jan 16, 2015 9:48 pm
by Baker
You are compiling both world.s (the asm file) and world.c (the C file). I would remove world.s from your project.
Somewhere in world.c there is something like #ifdef id386 or #if id386 and id386 isn't defined, or the world.c source file is intended for a "no assembly at all" build and doesn't have the #if block. (id386 is defined in the original Quake source to indicate to use assembly language versions of functions instead of the C ones)
Just removing world.s from your project should fix that particular issue, though.
(GLQuake doesn't need assembly for anything. WinQuake benefits from assembly language in the software renderer.)
Re: Compiling error message
Posted: Sat Jan 17, 2015 6:37 am
by hondobondo
Baker wrote:You are compiling both world.s (the asm file) and world.c (the C file). I would remove world.s from your project.
Somewhere in world.c there is something like #ifdef id386 or #if id386 and id386 isn't defined, or the world.c source file is intended for a "no assembly at all" build and doesn't have the #if block. (id386 is defined in the original Quake source to indicate to use assembly language versions of functions instead of the C ones)
Just removing world.s from your project should fix that particular issue, though.
(GLQuake doesn't need assembly for anything. WinQuake benefits from assembly language in the software renderer.)
awesome. thanks baker