undefined reference to libbsdport_netdriver_attach
salpha.2004 at gmail.com
Mon Oct 1 12:01:05 UTC 2012
I found the problem:
Somehow, those "-L /where/libbsdport/was/installed -lbsdport" should be
placed after init.o. That is:
-specs bsp_specs -qrtems -g -Wall -O2 -g -g -mtune=i386
-Wl,-Ttext,0x00100000 -mtune=i386 -o o-optimize/network-suite.exe
I do it manually now. I mean after a call to "make", I encounter
"undefined..." error and manually enter the above command. I dunno if there
is a way to embed this preference in Makefile.
I hope it would help someone in the future! :)
On Mon, Oct 1, 2012 at 2:31 PM, SAeeD <salpha.2004 at gmail.com> wrote:
> Ok I linked my application with the following LDFLAGS:
> LDFLAGS += -L /where/libbsdport/was/installed -lbsdport
> But I'm getting the same "undefined reference to
> 'libbsdport_netdriver_attach'" error again.
> What could be the possible problem?
> On Fri, Sep 28, 2012 at 7:20 PM, SAeeD <salpha.2004 at gmail.com> wrote:
>> 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
>> i386-rtems4.10-gcc --pipe
>> -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
>> 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.
>> 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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel