search path for cross gcc
Eric Fisher
joefoxreal@gmail.com
Mon Mar 27 19:42:00 GMT 2006
>And the header files can't be found in the search list, which
> has included the sysroot path.
Sorry, I typed wrongly above. It should be,
And the header files can be found in the search list, which
has included the sysroot path.
Thanks
Eric
2006/3/27, Eric Fisher <joefoxreal@gmail.com>:
> Thanks.
> But I did use the flag --with-sysroot when built the binutils and gcc. And the
> header files can't be found in the search list, which has included the sysroot
> path. And I also installed the glibc under the sysroot. But, still
> can't be found.
>
> Eric.
>
> 2006/3/27, Daniel Jacobowitz <drow@false.org>:
> > On Mon, Mar 27, 2006 at 12:22:07PM +0800, Eric Fisher wrote:
> > > Hi,
> > > I'd like to know how to set the search path of glibc for cross gcc. Suppose I
> > > have mips-linux-gcc installed, when I type 'mips-linux-gcc test.c -o
> > > test'. I think
> > > the tool chain should find the glibc of mips/linux autmatically. Yet, it's just
> > > the problem I'm meeting with. It can't be searched out.
> > > /tmp/ccOgTDmg.o(.text+0x154): In function `main':
> > > : undefined reference to `printf'
> >
> > Please search for --with-sysroot (or use crosstool).
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
> >
>
More information about the Libc-alpha
mailing list