shared libraries?

David Ohlemacher ohlemacher at bbn.com
Wed Jul 27 21:07:23 BST 2005


I found it <http://kdevelop.org/mediawiki/index.php/FAQ>...


      How to create a .so library?

    * Add a target to the project
      <http://docs.kde.org/en/HEAD/kdevelop/kdevelop/automakemanager-operation.html> (/http://docs.kde.org/en/HEAD/kdevelop/kdevelop/automakemanager-operation.html/)

          o /primary:/ Program
          o /prefix:/ noinst
          o /file name:/ your_lib.so
          o /Linker Flags->Other:/ -shared -fPIC
    * If you want to specify a version add |-version-info 0:0:0|
      (replace 0:0:0 with the version number you want) in /Target
      Options -> Flags -> Linker Flags (LDFLAGS) -> Other:/

    * Add the cpp/h files to this target




David Ohlemacher wrote:

> Hi all,
>
> I have a project with several static libraries and two executables.  I 
> would like to make one or more libraries shared.  The intent is to be 
> able to update source in that library and have to only rebuild it, not 
> the whole executable. Actually we are #including a file into the body 
> of a function, in the library to be shared, with some logic rules the 
> user can change. The user is another developer.  We are trying to 
> minimize the number of files that can be touched to meet an outside 
> requirement.
>
> How do I get automake manager to do this for me (make a shared lib)?   
> If I modify the library's options to enable -module, it fails to compile:
>
> src/analysistest/Makefile.am:10: variable `libanalysistest_a_LIBADD' 
> is defined but no program or
> src/analysistest/Makefile.am:10: library has `libanalysistest_a' as 
> canonic name (possible typo)
>
> Any suggestions?  URLs?
>
> Thanks,
> -d
>
>
>
>
>
>
> -
> to unsubscribe from this list send an email to 
> kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list