Amended on Sun 14 Oct 2007 01:16 AM (UTC) by Nargsbrood
Message
i uncommented the appropriate 2 lines in makefile but still get the same errors.
what i dont understand is i have 2 versions of my code.
the 1st version - wont compile due to errors noted above.
2nd version - backup version of the 1st version. probably month before 1st version current state.
2nd version compiles cleanly - no warnings whatsover about ambiguous else if whatevers and nothing about regex rename or crypt references.
why would one report the else if ambiguous problems and the other not if they're using same compiler? the code it gives the warnings on is not my code. in one place its auction code and i've never messed with that in my life.
Why isnt it consistent? and any other ideas on the crypt regex thing?
i fixed that last error and am now getting a legion of new problems :(
is there one single thing i should look for or one thing that would fix the problem? I would not have made this many changes without testing.
$ make
make smaug
make[1]: Entering directory `/cygdrive/d/smaug/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function `is_profane':
act_comm.c:3347: warning: implicit declaration of function `re_exec'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
act_info.c: In function `do_hset':
act_info.c:2062: warning: implicit declaration of function `RENAME'
act_info.c: In function `do_password':
act_info.c:3522: warning: implicit declaration of function `crypt'
act_info.c:3522: warning: assignment makes pointer from integer without a cast
act_info.c: In function `do_classes':
act_info.c:4781: warning: operation on `tClass_temp' may be undefined
act_info.c: In function `do_races':
act_info.c:4802: warning: operation on `tRace_temp' may be undefined
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function `will_fall':
act_move.c:495: warning: suggest parentheses around && within ||
act_move.c: In function `generate_exit':
act_move.c:604: warning: use of cast expressions as lvalues is deprecated
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1389: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_auction':
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:22: warning: trigraph ??! ignored, use -trigraphs to enable
act_wiz.c: In function `do_balzhur':
act_wiz.c:3268: warning: implicit declaration of function `RENAME'
act_wiz.c: In function `do_form_password':
act_wiz.c:5452: warning: implicit declaration of function `crypt'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function `do_mset':
build.c:1735: warning: implicit declaration of function `crypt'
build.c:1735: warning: assignment makes pointer from integer without a cast
build.c: In function `fold_area':
Amended on Sat 13 Oct 2007 10:12 PM (UTC) by Nargsbrood
Message
it's been about a year since i've looked at my code here. apparently when I left the project last year, i left it with compiler errors and am having problems determining what the cause is and how to fix it.
any direction on how to solve this problem would be greatly appreciated. let me know if any other bits of info are needed. Thank you - Nargs
smaug 1.4 - compiled on cygwin
here is what I am getting when I make all:
$ make all
make smaug
make[1]: Entering directory `/cygdrive/d/smaug/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
In file included from act_comm.c:32:
mud.h:2291: error: parse error before "MOBF_INDEX_DATA"
mud.h:2291: warning: no semicolon at end of struct or union
mud.h:2342: warning: built-in function 'exp' declared as non-function
mud.h:2419: error: parse error before '}' token
mud.h:4688: error: 'act' redeclared as different kind of symbol
mud.h:2343: error: previous declaration of 'act' was here
act_comm.c: In function `drunk_speech':
act_comm.c:229: error: dereferencing pointer to incomplete type
act_comm.c:229: error: dereferencing pointer to incomplete type
act_comm.c:231: error: dereferencing pointer to incomplete type
act_comm.c: In function `talk_channel':
act_comm.c:375: error: dereferencing pointer to incomplete type
act_comm.c:382: error: dereferencing pointer to incomplete
and those "error: dereferencing pointer to incomplete " keep repeating over and over many many pages long. Those problems will probably be fixed once my main problem is rooted out. which apparently is in mud.h
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.