| darthsabbath |
Jul 6th, 2006 3:53 AM |
GCC - Warning: implicit declaration of function
Hi all,
Just a question about a gcc warning I've received on a few different programs when compiling with the -Wall option...
:
warning: implicit declaration of function ‘whateverfunction()’
For example, in one program I use toupper() twice, and it only gives the warning on one line. In the same program, it gives another warning for isdigit(). The appropriate libraries are included, so I'm not sure what the deal is. Is this even something to worry about? I've Googled around and searched on here, but I cannot find an explanation (or at least one that applies to Standard C Library functions).
I know that -Wall turns on all the warnings, but I've been told that that's a good way to find errors and bugs, so I just want to make sure I'm not doing anything wrong.
BTW... I'm using Ubuntu 6.06, gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5), and Glibc 2.3.6.
Thanks.
|