<div dir="ltr">Ok I linked my application with the following LDFLAGS:<br><br>LDFLAGS += -L /where/libbsdport/was/installed -lbsdport<br><br>But I'm getting the same "undefined reference to 'libbsdport_netdriver_attach'" error again.<br>
What could be the possible problem?<br><br>Thanks,<br>SAeeD<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 7:20 PM, SAeeD <span dir="ltr"><<a href="mailto:salpha.2004@gmail.com" target="_blank">salpha.2004@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Did you add -lbsdports to the list of libraries you must link with ?<span></span><br>
</blockquote></div><div><br>I added this option to LDFLAGS section and this is the new link error I encounter:<br>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        <br>

/opt/rtems-4.10/lib/gcc/i386-rtems4.10/4.4.7/../../../../i386-rtems4.10/bin/ld: cannot find -lbsdports<br>collect2: ld returned 1 exit status<br>make: *** [o-optimize/network-suite.exe] Error 1<br><br>I doubt that I've added the option correctly to my Makefile. I've attached my Makefile.<br>

<br>Regards,<br>SAeeD<br> </div><div><div class="h5"><div class="gmail_quote">On Fri, Sep 28, 2012 at 2:13 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>SAeeD wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Is there any link options that I must add to my application's Makefile?<br>
</blockquote>
><br>
<br></div>
Did you add -lbsdports to the list of libraries you must link with ?<span><font color="#888888"><br>
<br>
Chris<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>