----- 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 | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST