This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
warning against common symbols
- From: "GNVS Sudhakar" <ssudhakar at novell dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 26 Jan 2005 23:00:35 -0700
- Subject: warning against common symbols
Hi,
How do I get a warning if I use any library function by mistake? For
example I should get a warning if I try to compile the following program
(tried -Wl,--warn-common option but it didn't work.):
/*openlog is a c library function*/
void openlog(void)
{
volatile int i=0;
i++;
}
int main(void)
{
openlog();
return 0;
}
Thanks
Sudhakar