--- In , "Patrick Lavin" <patrick.lavin@a...>
wrote: > Hello,
>
> try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips the the "lib" > and ".a" from the library name when
using the -l option.
Of course, I didn't think of that. Thanks!
Andreas
> e.g When you want to include libc.a you use -lc
> -----Original Message-----
> From: news [mailto:news@s...]On Behalf Of Andreas Schwarz
> Sent: 01 April 2004 11:56
> To:
> Subject: [lpc2000] GCC newlib problem
> Hello,
>
> I downloaded newlib-lpc from
> http://www.aeolusdevelopment.com/Articles/download.html, changed paths
> in the makefile and linker script, replaced <unistd.h> with
> <sys/unistd.h>, and was finally able to build the newlib-lpc.a.
But
> building the examples fails with the message "arm-elf-ld: cannot
find
> -lnewlib-lpc", although the file is in /tmp/newlib and I have
> SEARCH_DIR( /tmp/newlib) in the linker script.
>
> Any hints?
> Thanks
>
> ---- > --
> Yahoo! Groups Links
>
> a.. To
At 01:22 PM 4/1/04 +0100, you wrote: >Hello,
>
>try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips the the
>"lib" and ".a" from the library name when using the -l
option.
>
>e.g When you want to include libc.a you use -lc
That should do it. I added a note to the documentation. >-----Original Message-----
>From: news [mailto:]On Behalf Of Andreas Schwarz
>Sent: 01 April 2004 11:56
>To:
>Subject: [lpc2000] GCC newlib problem
>
>Hello,
>
>I downloaded newlib-lpc from
><http://www.aeolusdevelopment.com/Articles/download.html," target="_blank" rel="nofollow">http://www.aeolusdevelopment.com/Articles/download.html,>http://www.aeolusdevelopment.com/Articles/download.html,
>changed paths
>in the makefile and linker script, replaced <unistd.h> with
><sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
I'll take a look at that for the next update.
Robert
" 'Freedom' has no meaning of itself. There are always
restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, III
Reply by Patrick Lavin●April 1, 20042004-04-01
Hello,
try renaming newlib-lpc.a to libnewlib-lpc.a. AFAIK ld strips
the the "lib" and ".a" from the library name when using the -l option.
e.g When you want to include libc.a you use
-lc
-----Original Message----- From: news
[mailto:n...@sea.gmane.org]On Behalf Of Andreas Schwarz Sent:
01 April 2004 11:56 To: l...@yahoogroups.com Subject:
[lpc2000] GCC newlib problem
Hello,
I
downloaded newlib-lpc from http://www.aeolusdevelopment.com/Articles/download.html, changed paths in
the makefile and linker script, replaced <unistd.h> with <sys/unistd.h>, and was finally able to build the newlib-lpc.a. But building the examples fails with the message "arm-elf-ld: cannot find -lnewlib-lpc", although the file is in /tmp/newlib and I have SEARCH_DIR(
/tmp/newlib) in the linker script.
Any hints? Thanks
Reply by a_s_3_3●April 1, 20042004-04-01
--- In , "Leon Heller" <leon_heller@h...> wrote: >
> ----- Original Message -----
> From: "Andreas Schwarz" <usenet@a...>
> To: <>
> Sent: Thursday, April 01, 2004 11:55 AM
> Subject: [lpc2000] GCC newlib problem
> > Hello,
> >
> > I downloaded newlib-lpc from
> > http://www.aeolusdevelopment.com/Articles/download.html, changed
paths
> > in the makefile and linker script, replaced <unistd.h> with
> > <sys/unistd.h>, and was finally able to build the newlib-lpc.a.
But
> > building the examples fails with the message "arm-elf-ld: cannot
find
> > -lnewlib-lpc", although the file is in /tmp/newlib and I have
> > SEARCH_DIR( /tmp/newlib) in the linker script.
>
> Try the GNU tools from Arius, they come with Newlib and work OK:
>
> http://www.gnuarm.com/
I already have a working ARM-GCC toolchain with newlib, but I still
need the Aeolus LPC210x newlib port.
Reply by Leon Heller●April 1, 20042004-04-01
----- Original Message -----
From: "Andreas Schwarz" <>
To: <>
Sent: Thursday, April 01, 2004 11:55 AM
Subject: [lpc2000] GCC newlib problem
> Hello,
>
> I downloaded newlib-lpc from
> http://www.aeolusdevelopment.com/Articles/download.html, changed paths
> in the makefile and linker script, replaced <unistd.h> with
> <sys/unistd.h>, and was finally able to build the newlib-lpc.a.
But
> building the examples fails with the message "arm-elf-ld: cannot
find
> -lnewlib-lpc", although the file is in /tmp/newlib and I have
> SEARCH_DIR( /tmp/newlib) in the linker script.
Try the GNU tools from Arius, they come with Newlib and work OK:
I downloaded newlib-lpc from http://www.aeolusdevelopment.com/Articles/download.html, changed paths
in the makefile and linker script, replaced <unistd.h> with
<sys/unistd.h>, and was finally able to build the newlib-lpc.a. But
building the examples fails with the message "arm-elf-ld: cannot find
-lnewlib-lpc", although the file is in /tmp/newlib and I have
SEARCH_DIR( /tmp/newlib) in the linker script.