D
David Mathog
There was an editing error in one of my programs giving this line (two
left parentheses, one right):
FD_SET((ncmd->cmd_in_fd,&read_set);
When compiled with
gcc -Wall -pedantic -stc=c99
it issued this warning for that line number:
error: 'FD_SET' undeclared (first use in this function)
There's no argument that the line of code was wrong. I am curious
though why a compiler would choose to emit that particular message.
It was most confusing since FD_SET calls preceded and followed this one,
and they were not generating these "undeclared" warnings.
Regards,
David Mathog
left parentheses, one right):
FD_SET((ncmd->cmd_in_fd,&read_set);
When compiled with
gcc -Wall -pedantic -stc=c99
it issued this warning for that line number:
error: 'FD_SET' undeclared (first use in this function)
There's no argument that the line of code was wrong. I am curious
though why a compiler would choose to emit that particular message.
It was most confusing since FD_SET calls preceded and followed this one,
and they were not generating these "undeclared" warnings.
Regards,
David Mathog