implicit function declaration warnings
807578Jun 21 2005 — edited Jul 14 2005Hi All,
Code look likes below,
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/ipc.h>
int main()
{
struct sigvec *svec;
int sig;
sigvec(sig, &svec, NULL);
return 0;
}
When i compile this with forte 4.2 compiler its not throwing any warnings. and when compiled with forte 6.2 its throwing warning as:
"imp.c", line 9: warning: implicit function declaration: sigvec
How can i resolve this.
Compile:
cc -g -o imp imp.c -lnsl -lucb
And cc location is : /opt/forte62/SUNWspro/bin/cc
Output of uname -a :
SunOS server1 5.9 Generic_117171-17 sun4u sparc SUNW,Sun-Fire-V440
For PATH variable i given /opt/forte62/SUNWspro/bin prior to /usr/ucb.
Thanks & Regards,
Sarath.