PDA

View Full Version : Linux FC4 Compile Error


John Adams
10-13-2007, 05:28 AM
As of the latest build, there is an error compiling on Linux FC4 (EQEmu 992 does not have the same problem on the same OS).

spell_effects.cpp:776: error: expected `)` before `spell`

The line of code is:
snprintf(effect_desc, _EDLEN, "Summon %s: %s", (effect==SE_Familiar)?"Familiar":"Pet" spell.teleport_zone);

And the fix (appears to be) adding a comma before "spell.teleport_zone":
snprintf(effect_desc, _EDLEN, "Summon %s: %s", (effect==SE_Familiar)?"Familiar":"Pet", spell.teleport_zone);

gernblan
10-17-2007, 02:49 PM
Or just delete that whole line.. it's a debug line that KLS left in and isn't needed for anything beyond that.

WildcardX
10-18-2007, 03:08 PM
I'll add this into the server code. Thanks for it.

KLS
10-18-2007, 05:01 PM
odd, I recall commiting that with comma intact (as it compiled for me before I commited and don't recall touching it between that time and commit).

But yeah the line is also non essential and just used for debugging purposes, delete it or add the comma till it's fixed.

WildcardX
10-18-2007, 05:40 PM
This has been committed to the server code repository. Thank you for your contribution.