Amended on Tue 25 Apr 2006 11:35 AM (UTC) by Samson
Message
BTW, just to keep the record straight, AFKMud is not a ROM derivative and would not have been subject to this problem :)
The compiler error encountered is usually because you have a function sharing the same name as one from the standard includes. I don't recall hitting this with any of the stock Rom derivs I've tested but it is possible one or more flavors of GCC are to blame for this.
Best bet, find and rename the "getline" function in whatever file it's located in. Then rename all of the calls within the code to use the new name.
SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
What is your operating system? What is your environment?
The getline problem has been covered here before; have you tried searching in the ROM section?
Basically you'll need to rename the function to something else, and change all references to getline in your source code to your new function name.
Also, please use the code tag when posting code.
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
Alright, this becoming a rather large headache, and I get the same exact error for all the codebases I have tried to compile - From Dawn, to Rom24b6, To startermud, afkmud, basically every rom deritive in existance. Heres the problem:
string.c:699: error: conflicting types for 'getline'
/usr/include/sys/stdio.h:31: error: previous declaration of 'getline' was here
string.c:699: error: conflicting types for 'getline'
/usr/include/sys/stdio.h:31: error: previous declaration of 'getline' was here
make: *** [string.o] Error 1
---
Basically thats the error I get for every single codebase I try to compile. Any help would be greatly appreciated.
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.