29 Oct, 2012, AlphaTech wrote in the 21st comment:
Votes: 0
ok so then I should copy whats in the makefile for Gcc into makefile and try the make command again? I promise I really am trying to learn here! :cry:
29 Oct, 2012, Tyche wrote in the 22nd comment:
Votes: 0
If you have gcc-core installed, changing the line(s) in the makefile from CC = gcc to CC = gcc-3 should invoke the old compiler.
You should have much fewer or perhaps no errors to fix.
30 Oct, 2012, AlphaTech wrote in the 23rd comment:
Votes: 0
I did as you said Tyche and it did get me a lot farther, now I get this

board.h:79:7: warning: no newline at end of file
In file included from save.c:38:
merc.h:2456: warning: conflicting types for built-in function 'logf'
In file included from save.c:38:
merc.h:2857:7: warning: no newline at end of file
save.c: In function `load_char_obj':
save.c:801: error: `buf' undeclared (first use in this function)
save.c:801: error: (Each undeclared identifier is reported only once
save.c:801: error: for each function it appears in.)
Makefile:32: recipe for target `obj/save.o' failed
make: *** [obj/save.o] Error 1

Now as I read that I see that I cant make a file, is this correct? and where would I look to figure out what to do to fix this?
30 Oct, 2012, AlphaTech wrote in the 24th comment:
Votes: 0
ok update, this is now what I'm getting.

$ make -k
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/string.o string.c
string.c:649: error: conflicting types for 'getline'
/usr/include/sys/stdio.h:37: error: previous declaration of 'getline' was here
string.c:649: error: conflicting types for 'getline'
/usr/include/sys/stdio.h:37: error: previous declaration of 'getline' was here
Makefile:33: recipe for target `obj/string.o' failed
make: *** [obj/string.o] Error 1
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/board.o board.c
board.c: In function `load_board':
board.c:328: warning: array subscript has type `char'
board.c: In function `handle_con_note_finish':
board.c:1156: warning: subscript has type `char'
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/fight.o fight.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/act_enter.o act_enter.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/bit.o bit.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/skills.o skills.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/flags.o flags.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/recycle.o recycle.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/db2.o db2.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/music.o music.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/const.o const.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/magic.o magic.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/mob_cmds.o mob_cmds.c
gcc-3 -O -g3 -Wall -DIMC -DIMCROM -c -o obj/olc.o olc.c
make: Target `rom' not remade because of errors.


I don't understand, I'm usually so quick at learning and fixing this kind of thing alone but this mud thing is perplexing, I love it!
30 Oct, 2012, Tyche wrote in the 25th comment:
Votes: 0
string.c:649: error: conflicting types for 'getline'

You need to fix line 649 in string.c
There's a redeclaration of a standard library function getline().
It probably isn't necessary, but I don't know what the source code looks like nor how it's used.
30 Oct, 2012, AlphaTech wrote in the 26th comment:
Votes: 0
Ok I see what your getting at, ill try commenting it out and see what happens. thanks that will help me fix errors that might come about later too
30 Oct, 2012, Tyche wrote in the 27th comment:
Votes: 0
There appears to be some comments on this at:
http://www.mudbytes.net/index.php?a=comm...
20.0/27