[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  Warfare Errors

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Warfare Errors

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Lupercus   (4 posts)  [Biography] bio
Date Thu 28 Mar 2002 03:43 AM (UTC)  quote  ]
Message
Okay, got some code for a warfare system, added everything in that was needed. Compiled got a whole bunch of errors. Fixed some stuff up. Compiled again. Got more errors. Now, I'm having trouble.
fight.c, handler.c and war.c are messed up with all kinds of errors and I'm not sure how to fix them. I'll put handler.c here first. Its got most errors I think.

gcc handler.c -Wall -O -ggdb -DNOCRYPT -c -o obj/handler.o
handler.c: In function `extract_char':
handler.c:2160: warning: implicit declaration of function `wartalk'
handler.c:2137: warning: unused variable `wch'
handler.c:2138: warning: unused variable `obj'
handler.c:2139: warning: unused variable `obj_next'
handler.c: At top level:
handler.c:2189: parse error before "if"
handler.c:2192: parse error before numeric constant
handler.c:2192: warning: type defaults to `int' in declaration of `stop_fighting
'
handler.c:2192: conflicting types for `stop_fighting'
merc.h:2589: previous declaration of `stop_fighting'
handler.c:2192: warning: data definition has no type or storage class
handler.c:2194: warning: type defaults to `int' in declaration of `obj'
handler.c:2194: invalid type argument of `->'
handler.c:2194: parse error before ')' token
handler.c:2197: warning: type defaults to `int' in declaration of `extract_obj'
handler.c:2197: warning: parameter names (without types) in function declaration
handler.c:2197: conflicting types for `extract_obj'
handler.c:2084: previous declaration of `extract_obj'
handler.c:2197: warning: data definition has no type or storage class
handler.c:2198: parse error before '}' token
handler.c:2219: warning: type defaults to `int' in declaration of `wch'
handler.c:2219: invalid type argument of `->'
handler.c:2219: parse error before ')' token
handler.c:2235: warning: type defaults to `int' in declaration of `prev'
handler.c:2235: invalid type argument of `->'
handler.c:2235: parse error before ')' token
handler.c:2253: warning: type defaults to `int' in declaration of `free_char'
handler.c:2253: warning: parameter names (without types) in function declaration
handler.c:2253: conflicting types for `free_char'
recycle.h:89: previous declaration of `free_char'
handler.c:2253: warning: data definition has no type or storage class
handler.c:2254: parse error before "return"
handler.c: In function `affect_bit_name':
handler.c:2910: warning: control reaches end of non-void function
make: [obj/handler.o] Error 1 (ignored)

Some of these, I've never seen. And I've got no idea on how to fix them. Thought this would be a good place to check.

Lupercus
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 28 Mar 2002 05:07 AM (UTC)  quote  ]
Message
"implicit declaration" means it doesn't know what that does. Maybe a missing .h file?

"parse error" could be almost anything. Check the code around the line in question.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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,259 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]