undefined reference to libbsdport_netdriver_attach

SAeeD salpha.2004 at gmail.com
Fri Sep 28 15:50:56 UTC 2012


>
> Did you add -lbsdports to the list of libraries you must link with ?
>

I added this option to LDFLAGS section and this is the new link error I
encounter:
i386-rtems4.10-gcc --pipe
-B/home/saeed/RTEMS/src/rtems-4.10.2/b-pc386/bsp-install/i386-rtems4.10/pc386/lib/
-specs bsp_specs -qrtems   -g -Wall  -O2 -g -g      -mtune=i386
-Wl,-Ttext,0x00100000  -lbsdports  -mtune=i386   -o
o-optimize/network-suite.exe  o-optimize/init.o
/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.7/../../../../i386-rtems4.10/bin/ld:
cannot find -lbsdports
collect2: ld returned 1 exit status
make: *** [o-optimize/network-suite.exe] Error 1

I doubt that I've added the option correctly to my Makefile. I've attached
my Makefile.

Regards,
SAeeD

On Fri, Sep 28, 2012 at 2:13 AM, Chris Johns <chrisj at rtems.org> wrote:

> SAeeD wrote:
>
>>
>> Is there any link options that I must add to my application's Makefile?
>>
> >
>
> Did you add -lbsdports to the list of libraries you must link with ?
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20120928/579e13c1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1348 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20120928/579e13c1/attachment.obj>


More information about the devel mailing list