Somehow your source file lost the “stdio.h” file reference in the #include statement.


From: William Pretty Security Inc []
Sent: Thursday, February 17, 2011 5:10 PM
To: 'General mailing list for gumstix users.'
Subject: [Gumstix-users] Hello World Tutorial Problems :(


Well I installed the native SDK and then tried both “Hello World” examples …


I’m not much of a C++ programmer but here’s what I got:


The new “Hello World”:  Saved as ‘hellothere.cpp’



using namespace std;


int main() {

    cout << "Gumstix can natively compile C++" << endl;

    return 0;



The Result:


root@overo:~/temp# g++ -o hello hellothere.cpp

hellothere.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>

hellothere.cpp: In function 'int main()':

hellothere.cpp:5: error: 'cout' was not declared in this scope

hellothere.cpp:5: error: 'endl' was not declared in this scope




The Old “Hello World”:



hello: hello.c


${CC} ${CFLAGS} ${LDFLAGS} -o hello hello.c


The Old “Hello World” saved as Hello.c


#include "stdio.h"



printf ("Hello Out There");



The Result:


root@overo:~/temp# make hello.c

makefile:3: *** missing separator.  Stop.




Any ideas ??


Thanks …


"People sleep peaceably in their beds at night only because rough men

stand ready to do violence on their behalf." - George Orwell