Here is the terminal output that I'm seeing:


(Here it compiles with the normal native linux compiler - no problems)
user@laptop:~/gumstix-buildroot/toolchain_build_arm_nofpu/gcc-4.1.1-final/gcc$ gcc vgrabber.c -o xvgrab


(Here is the output from cross-compilation)
user@laptop:~/gumstix-buildroot/toolchain_build_arm_nofpu/gcc-4.1.1-final/gcc$ ./gcc-cross vgrabber.c -o xvgrab
vgrabber.c: In function 'main':
vgrabber.c:172: error: '__S' undeclared (first use in this function)
vgrabber.c:172: error: (Each undeclared identifier is reported only once
vgrabber.c:172: error: for each function it appears in.)


Thank you so much for you help

-Tyler




On Nov 29, 2007 8:38 PM, Dave Hylands <dhylands@gmail.com> wrote:
Hi Tyler,

> I'm having a strange issue involving cross-compiling that I'm hoping that
> someone could shed some light on-
>
> I'm trying to compile vgrabber.c ( www.tazenda.demon.co.uk/phil/vgrabber.c),
> a light weight v4l capture program.
>
> This program compiles without error using the native gcc compiler on my
> ubuntu machine .
>
> However, when I try to cross-compile this using the gumstix toolchain I get
> the following error:
>
>
> vgrabber.c: In function 'main':
> vgrabber.c :172: error: '__S' undeclared (first use in this function)
> vgrabber.c:172: error: (Each undeclared identifier is reported only once
> vgrabber.c:172: error: for each function it appears in.)
>
>
> The thing is that there is no '__S' in the code. I've googled the issue
> without any success, does anyone know what going on?

The __S is coming from uClibc's stdio.h (actually
bits/uClibc_stdio.h), and is related to the fputc call.

I'm not sure why you're running into the problem. You'd have to send
the actual output from the compiler and the exact command line used to
compile and link.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users