Christian Damus(deleted)
|
Re: Creating a Shared Library in BSP using IDE
|
Christian Damus(deleted)
09/09/2010 8:43 AM
post66521
|
Re: Creating a Shared Library in BSP using IDE
Hi, Arun,
Sorry for the late reply.
You only need the S.a for static linking into other shared libs, and the
versioned .so is only necessary if you need to support multiple
applications that are linked to different versions of the library. For
your development purposes, that's probably not a concern. It's only
interesting in deployment on your target system.
So, yes, just install the .so and link with -lcommon in your linker
command, and you should be fine.
HTH,
Christian
On 02/09/10 03:11 PM, Arun Parameswaran wrote:
> Thanks a lot Christian!! I was able to create the shared library.
>
> One more question, the shared library structure creates and installs "*.so", "*S.a" and "*.so.1". Are all these files
required to be in the install path when I am including this library in other drivers/components in BSP.
>
> For example, if I want to include this shared library (for example: libcommon.so) from 'devc' ('NOT' static linking),
cant I link to 'libcommon.so' and have only the 'libcommon.so' installed in the 'lib' folder or do I require the
'libcommonS.a' and 'libcommon.so.1' to be present there?
> If my understanding is correct, the "S.a" is for statically linking the library and '.so.1' is a version management
file.
>
> Thanks,
> Arun
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post65766
>
>
--
*Christian W. Damus*
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>
|
|
|