[solved] Re: shared library with rtems
Luca Cinquepalmi
cinquepalmi at planetek.it
Wed Oct 2 11:14:44 UTC 2013
I used LINK_LIBS = -lMyLib
and it works!
Il 02/10/2013 12:57, Gedare Bloom ha scritto:
> Check that the symbols are in your shared library file, for example with:
> sparc-rtems4.11-nm libmyLib.a > symbols.txt
> and then look in symbols.txt. The error indicates the library is not
> being loaded correctly at link time.
> -Gedare
>
>
> On Wed, Oct 2, 2013 at 5:37 AM, Luca Cinquepalmi
> <cinquepalmi at planetek.it> wrote:
>> Now I'm able to integrate my shared libraries,
>> but the compiler is not able to find the funcions implemented
>> in it:
>>
>> OBSW_Xmain.cc:(.text+0x68): undefined reference to
>> `HWDRV_Driver::addCanDevice(HWDRV_Device)'
>>
>> I don't think to add cpp soruce file... Can you please tell me what is the
>> problem?
>> I just included header files...
>>
>> Thanks
>> Luca
>>
>>
>> Il 01/10/2013 14:41, Luca Cinquepalmi ha scritto:
>>
>> Shall I use -B instead of -L option in compiling?
>>
>>
>> Il 01/10/2013 13:36, Wendell Silva ha scritto:
>>
>> Well, it should work...
>> Could you, please, post the entire command line? The lower case L ('l')
>> sounds very simililar to upper case "i" ('I').
>>
>>
>> 2013/10/1 Luca Cinquepalmi <cinquepalmi at planetek.it>
>>> Yes, sure!
>>>
>>> Il 01/10/2013 13:15, Wendell Silva ha scritto:
>>>
>>> Is there a file named libtestLib.a in lib_path?
>>>
>>>
>>> 2013/10/1 Luca Cinquepalmi <cinquepalmi at planetek.it>
>>>> Hi all,
>>>> I'm trying to compile a shared library with sparc-rtems-gcc,
>>>> by using the options -I (include), -L(lib_path) and -l(library)
>>>> but the following message appear
>>>>
>>>> ld: cannot find -ltestLib
>>>>
>>>> Shall i use different options? How you tried to do it in a different way?
>>>> Thanks
>>>>
>>>> Luca
>>>>
>>>> _______________________________________________
>>>> rtems-users mailing list
>>>> rtems-users at rtems.org
>>>> http://www.rtems.org/mailman/listinfo/rtems-users
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
>>
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
More information about the users
mailing list