Re: Strange Compiler Message

From: Chuck Carson (ccarson@phi.org)
Date: 08/23/99


Okay, I will check this gain but I have triple
checked this code. It is a really simple void
function, of which I have already added probably
10 other to this file that work fine.

Thanks
-Chuck


-----Original Message-----
From: Tony Robbins [mailto:tonyr@PACIFIC101.COM]
Sent: Monday, August 23, 1999 10:05 AM
To: CIRCLE@post.queensu.ca
Subject: Re:  Strange Compiler Message


----- Original Message -----
From: Chuck Carson <ccarson@PHI.ORG>
To: <CIRCLE@post.queensu.ca>
Sent: Sunday, August 22, 1999 9:56 PM
Subject:  Strange Compiler Message


> Here is what the compiler says:
> anarchy:/home/Current/src ===>make
> make ../bin/circle
> make[1]: Entering directory `/home/Current/src'
> gcc -c -g -O2 -Wall  class.c
> class.c: In function `do_start':
> class.c:8440: warning: implicit declaration of function
> `apply_racial_bonuses'
> class.c: At top level:
> class.c:10065: warning: type mismatch with previous implicit declaration
> class.c:8440: warning: previous implicit declaration of
> `apply_racial_bonuses'
> class.c:10065: warning: `apply_racial_bonuses' was previously implicitly
> declared to return `int'

Believe it or not, these funky errors can occur from a brace mismatch, and
I've done it a few times.  Basically, your braces get unbalanced to where it
thinks you're not in a function anymore, so when you call that function, it
thinks you're declaring it.

That's not tech-speak in the least, but basically, check your }'s and {'s.

-k.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST