From: Ulrich V. D. B. <uvo...@my...> - 2004-12-16 01:26:17
|
Hi, I just got a gumstix and tried following the first steps of programming as described in the support docs on gumstix.com and encountered an error compiling the hello.c sample: // hello.c from the introduction from gumstix.com #include <stdio.h> void main() { printf(?Hello, small world!\n?); } after typing: build_arm/staging_dir/bin/arm-linux-gcc hello.c the following errors come up: hello.c: In function `main': hello.c:4: error: stray '\226' in program hello.c:4: error: stray '\128' in program hello.c:4: error: stray '\156' in program hello.c:4: error: `Hello' undeclared (first use in this function) hello.c:4: error: (Each undeclared identifier is reported only once hello.c:4: error: for each function it appears in.) hello.c:4: error: `small' undeclared (first use in this function) hello.c:4: error: parse error before "world" hello.c:4: error: stray '\' in program hello.c:4: error: stray '\226' in program hello.c:4: error: stray '\128' in program hello.c:4: error: stray '\157' in program hello.c:3: warning: return type of 'main' is not `int' If the printf(..) line in hello.c is commented out, the program compiles fine. After surfing for "error: stray" I found that it might simply have to do with corrupted header files. But after deleting and getting the entire gumstix-buildroot again the exact same thing happens. Does somebody know how to resolve this? Thanks&Regards, Ulrich |
From: Larry B. <lar...@gm...> - 2004-12-16 01:49:58
|
try changing the ? to " or is there some translation error by the way of the keyboard? On Wed, 15 Dec 2004 17:26:09 -0800 (PST), Ulrich Von Der Blumensaat <uvo...@my...> wrote: > Hi, > > I just got a gumstix and tried following the first steps of programming > as described in the support docs on gumstix.com and encountered an > error compiling the hello.c sample: > > // hello.c from the introduction from gumstix.com > #include <stdio.h> > void main() > { > printf(?Hello, small world!\n?); > } > > after typing: > build_arm/staging_dir/bin/arm-linux-gcc hello.c > > the following errors come up: > hello.c: In function `main': > hello.c:4: error: stray '\226' in program > hello.c:4: error: stray '\128' in program > hello.c:4: error: stray '\156' in program > hello.c:4: error: `Hello' undeclared (first use in this function) > hello.c:4: error: (Each undeclared identifier is reported only once > hello.c:4: error: for each function it appears in.) > hello.c:4: error: `small' undeclared (first use in this function) > hello.c:4: error: parse error before "world" > hello.c:4: error: stray '\' in program > hello.c:4: error: stray '\226' in program > hello.c:4: error: stray '\128' in program > hello.c:4: error: stray '\157' in program > hello.c:3: warning: return type of 'main' is not `int' > > If the printf(..) line in hello.c is commented out, the program > compiles fine. > After surfing for "error: stray" I found that it might simply have to > do with corrupted header files. But after deleting and getting the > entire gumstix-buildroot again the exact same thing happens. > > Does somebody know how to resolve this? > > Thanks&Regards, > > Ulrich > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |