When I compile this extremely simple program I get this cryptic error:
"warning: passing argument 1 of "printf" from incompatible pointer type"
Here is the program.
# include <stdio.h>
int main()
{
printf(stdout, "this is a test\n");
}
What ever could be wrong? :)
-----------------------------
Never mind. Incompatible versions of C.
The program source was from an earlier version.
Here is the corrected source:
# include <stdio.h>
int main()
{
printf("this is a test\n");
}
Now it apparently compiles it but I can not find the executable.
Anybody have any idea where gcc hides it? :)
Paul Lamar
--
The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site.
http://www.rotaryeng.net
Youtube key word UTUBPLEASE
Copyright 1998-2009 All world wide rights reserved.