automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating shared libraries


From: Ralf Wildenhues
Subject: Re: creating shared libraries
Date: Thu, 25 Oct 2007 22:24:01 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* address@hidden wrote on Thu, Oct 25, 2007 at 10:13:38PM CEST:
> 
> 1. in Makefile.am:
> lib_LTLIBRARIES = libSCORECModel.la
> libSCORECModel_la_SOURCES = \
>  entities/GEdge.cc \
> 
> Compiling error:
> Making all in src
> make[1]: Entering directory
> `/users/txie/tmp/FMDB_Automake/SCORECModel/SCORECModel/src'
> make[1]: *** No rule to make target `GEdge.cc', needed by `GEdge.lo'.  Stop.

Hmm, that's weird.  Which Automake version are you using?  Have you made
sure the file entities/GEdge.cc exists, and there is not maybe a typo?

You should be able to use the Automake option subdir-objects.  See here
for how to set it, and what it does:
<http://sources.redhat.com/automake/automake.html#Options>
Still, if that works, but without it, it doesn't work, then that is a
bug hiding somewhere.

> 2. after make install, it creates some shared library with the extension
> of some digits, like libfoo.so.0, libfoo.so.0.0.0. How to avoid creating
> these files?

-avoid-version is explained here:
<http://www.gnu.org/software/libtool/manual.html#Link-mode>
The concept and benefits of versioning are explained here:
<http://www.gnu.org/software/libtool/manual.html#Versioning>

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]