EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Linux FC4 Compile Error (https://www.eqemulator.org/forums/showthread.php?t=23761)

John Adams 10-13-2007 05:28 AM

Linux FC4 Compile Error
 
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).

Code:

spell_effects.cpp:776: error: expected `)` before `spell`
The line of code is:
Code:

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":
Code:

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.


All times are GMT -4. The time now is 08:34 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.