Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Lupercus
(4 posts) bio
|
| Date |
Thu 28 Mar 2002 03:49 AM (UTC) [ quote
] |
| Message |
And finally, fight.c
gcc fight.c -Wall -O -ggdb -DNOCRYPT -c -o obj/fight.o
fight.c: In function `one_hit':
fight.c:592: warning: suggest explicit braces to avoid ambiguous `else'
fight.c: In function `damage':
fight.c:776: warning: suggest parentheses around && within ||
fight.c:881: parse error before '(' token
fight.c: At top level:
fight.c:1009: parse error before "if"
fight.c:1046: warning: type defaults to `int' in declaration of `tail_chain'
fight.c:1046: conflicting types for `tail_chain'
merc.h:2556: previous declaration of `tail_chain'
fight.c:1046: warning: data definition has no type or storage class
fight.c:1047: parse error before "return"
fight.c: In function `dam_message':
fight.c:2104: warning: `attack' might be used uninitialized in this function
make: [obj/fight.o] Error 1 (ignored)
Thank you for any feedback on this. I really want to get this to work.
Lupercus | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Thu 28 Mar 2002 05:10 AM (UTC) [ quote
] |
| Message |
This is very hard to comment on. You have given the error messages, but not the code that causes them. You say you "got some code" and "fixed some stuff up". It is hard to say whether:
* The original code didn't work
* It wasn't designed for ROM, or this version
* The patches didn't work properly
* Your fixes caused problems |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Lupercus
(4 posts) bio
|
| Date |
Reply #2 on Thu 28 Mar 2002 03:51 PM (UTC) [ quote
] |
| Message |
Alright, I'll try what you've suggested so far. Would it help if I provided the code?
Lupercus | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #3 on Fri 29 Mar 2002 10:54 PM (UTC) [ quote
] |
| Message |
I can't really debug patches provided by a third party to tens of thousands of lines of ROM code.
I suggest you go to where you got the patches and see if they have a patched version you can have that compiles OK. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
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.
1,489 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )