|
Re: Issue while linking shared library
|
11/16/2010 8:33 AM
post74773
|
Re: Issue while linking shared library
If it is not in the path it should have produced an error...
Btw make sure -lXYZ is at the END of the command line, AFTER object files.
On 16/11/10 08:19 AM, Christian Damus wrote:
> Hi, Girisha,
>
> Did you tell the linker where to find libXYZ with a -L option? e.g.,
> -L/path/to/libXYZ/project
>
> HTH,
>
> Christian
>
>
> On 10-11-16 1:26 AM, "Girisha SG" <community-noreply@qnx.com> wrote:
>
>> I have created two projects,
>> 1. Library project that creates libXYZ.so and libXYZS.a using momentics 6.5.0
>> IDE.
>> 2. Application project that uses the above shared library.
>>
>> I am getting the following error when I compile the application project(I have
>> linked the shared library using -lXYZ option to qcc),
>>
>> undefined reference to `Function_ABC'
>>
>> I have the following queries,
>> 1. How to link the shared library to the application ?
>> 2. How to resolve the undefined reference error ?
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post74750
>>
>>
>
|
|
|