Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fork() problem

Status
Not open for further replies.

xicmaek

Programmer
Joined
Dec 3, 2001
Messages
1
Location
SE
Why do I get compile errors in a system included file? (/usr/include/sys/siginfo.h:74: syntax error before `*')

The source code is:
"
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char* argv[]) {
if (fork()) {
printf(&quot;Child\n&quot;);
printf(&quot;%d&quot;, getpid());
} else {
printf(&quot;Parent\n&quot;);
printf(&quot;%d&quot;,getpid());
}
}

&quot;
 
Are the double quotes part of your code?
 
No, they are not.
The problem is that I get a compile error in a h-file that is not part of my code...
 
I think the only thing you could do is... take a look on file /usr/include/sys/siginfo.h, line 74.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top