libtool
[Top][All Lists]
Advanced

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

Static libraries


From: BERTRAND Joël
Subject: Static libraries
Date: Wed, 10 Apr 2002 11:19:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311

        Hello,

I'm trying to build a static library. I can make a shared library and I can use this library with

g77 -o example example.o -lrpl

without any trouble. But, if I try to use the generated static library with

g77 -o example example.o /usr/local/lib/example

some symbols are unresolved. How can I include all symbols in my static library.

        My Makefile.am is :

bin_PROGRAMS = rpl
lib_LTLIBRARIES = librpl.la
...
rpl_SOURCES = $(SRCC) $(SRCH) $(SRCF) $(INIT_EXE)
rpl_LDFLAGS = -rdynamic

librpl_la_SOURCES = $(SRCC) $(SRCH) $(SRCF) $(INIT_LIB)
librpl_la_LDFLAGS = -rdynamic -all-static -version-info 0:0:0
librpl_la_LIBADD = $(top_builddir)/lapack-3.0/lapack/liblapack.a \
        $(top_builddir)/lapack-3.0/blas/libblas.a \
        $(ldadd_libreadline) $(ldadd_libncurses)

include_HEADERS = rplargs.h rpltypes.h librpl.h

INCLUDES = -I$(srcdir) -I$(top_builddir) \
        $(include_libreadline) $(include_libtermcap)
DEFS = -DHAVE_CONFIG_H -Dd_version_rpl=\"@address@hidden" \
        @POSTSCRIPT_SUPPORT@ @GNUPLOT_SUPPORT@ @EXPERIMENTAL_CODE@ $(date)
LDADD = $(top_builddir)/lapack-3.0/lapack/liblapack.a \
        $(top_builddir)/lapack-3.0/blas/libblas.a \
        $(ldadd_libreadline) $(ldadd_libncurses)

rpl.o: rpl.c always
always:

        How can I fixe this trouble ?

        Thanks in advance,

        JKB




reply via email to

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