warning against common symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux