Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

implicit function declaration warnings

807578Jun 21 2005 — edited Jul 14 2005
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2005
Added on Jun 21 2005
3 comments
264 views