* how to cross complile helloworld.c
@ 2001-12-11 12:35 srinivas pulipati
2001-12-11 16:10 ` Mark Hatle
0 siblings, 1 reply; 3+ messages in thread
From: srinivas pulipati @ 2001-12-11 12:35 UTC (permalink / raw)
To: Embedded Linux PPC List
hi,
i have compiled glibc for powerpc-linux.
when i try to compile a sample file helloworld.c
it is saying undefined reference to printf.
looks like it is not taking proper library.
can anyone help me?
thanks
srinivas
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to cross complile helloworld.c
2001-12-11 12:35 how to cross complile helloworld.c srinivas pulipati
@ 2001-12-11 16:10 ` Mark Hatle
2001-12-12 12:58 ` srinivas pulipati
0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2001-12-11 16:10 UTC (permalink / raw)
To: srinivas pulipati; +Cc: Embedded Linux PPC List
srinivas pulipati wrote:
>
> hi,
>
> i have compiled glibc for powerpc-linux.
> when i try to compile a sample file helloworld.c
> it is saying undefined reference to printf.
> looks like it is not taking proper library.
>
> can anyone help me?
>
> thanks
> srinivas
>
After compiling glibc, did you rebuild you compiler set? Without doing
a recompile gcc is still going to use newlib and will have no knowledge
of the installed glibc.
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to cross complile helloworld.c
2001-12-11 16:10 ` Mark Hatle
@ 2001-12-12 12:58 ` srinivas pulipati
0 siblings, 0 replies; 3+ messages in thread
From: srinivas pulipati @ 2001-12-12 12:58 UTC (permalink / raw)
To: Mark Hatle; +Cc: Embedded Linux PPC List
hi mark,
yes i built the gcc after compling glibc only.
just now i figured out the problem.
after compiling glibc..
i edited the file <path where you put glibc/lib/libc.so and changed
GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a )
to:
GROUP ( <path where you put glibc>/lib/libc.so.6 <path where you put
glibc>/lib/libc_nonshared.a )
now powepc-linux-gcc is able to compile hello.c file without any error.
thanks
srinivas
Mark Hatle wrote:
> srinivas pulipati wrote:
> >
> > hi,
> >
> > i have compiled glibc for powerpc-linux.
> > when i try to compile a sample file helloworld.c
> > it is saying undefined reference to printf.
> > looks like it is not taking proper library.
> >
> > can anyone help me?
> >
> > thanks
> > srinivas
> >
>
> After compiling glibc, did you rebuild you compiler set? Without doing
> a recompile gcc is still going to use newlib and will have no knowledge
> of the installed glibc.
>
> --Mark
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-12 12:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-11 12:35 how to cross complile helloworld.c srinivas pulipati
2001-12-11 16:10 ` Mark Hatle
2001-12-12 12:58 ` srinivas pulipati
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).