Subject: Real Time Linux fuel injection
From: Rotary Engine
Date: 1/14/2010, 6:18 PM
To: AAA Put this in the To box


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


Depends on what name it was given when compiled... the default is 'a.out' in
the working directory. The output file name can be changed with (I believe)
the '-o' option. (try gcc --help)

Example:
gcc main.c -o fancyprogramname

If you are attempting to code this without a makefile / workspace, you are
embarking on an 'adventure'.


--Kenny A.
http://websites.expercraft.com/kennya/

Thanks Kenny. I got it working.

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.