[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linking a nonlibtool lib into a libtool-lib
From: |
Maria Yndefors |
Subject: |
linking a nonlibtool lib into a libtool-lib |
Date: |
Fri, 19 Oct 2001 08:53:16 +0200 |
Hi!
I don't know if this is the right list for this messag but I'll try anyway.
I'm using automake and libtool to create a library: libsip.la .
libsip.la is also dependent on another library: vocalsip.a , but that one is
not created with libtool.
The problem is that libsip.la is created but when I use it from a main and
try to create one of the objects in the libsip.la I get errors saying:
undefined reference to 'Data'
I'm guessing that there is some error with liking the libsip.la together with
libsip.a
I would apreciate any help.
Best regards
Maria
This is my sip/configure.in file
------------------------------------------------------
AC_INIT(main.cxx)
AM_INIT_AUTOMAKE(siptest,0.1)
AM_CONFIG_HEADER(config.h)
STATIC=-static
AC_SUBST(STATIC)
# Package name and version number (user defined)
GENERIC_LIBRARY_NAME=voipzon_sip
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_DISABLE_SHARED
AM_PROG_LIBTOOL
AM_SANITY_CHECK
AC_LANG_CPLUSPLUS
AC_OUTPUT(
Makefile
sipstack/Makefile)
----------------------------------------------------
This is the sip/Makefile.am file
-----------------------------------------------------
## Process this file with automake to produce Makefile.in
## top directory
AUTOMAKE_OPTIONS = no-dependencies foreign
SUBDIRS = sipstack
bin_PROGRAMS = siptest.static siptest
INCLUDES = -I$(top_srcdir)/sipstack \
-I$(top_srcdir)/Vocal1.3.0RC1/sdp \
-I$(top_srcdir)/Vocal1.3.0RC1/sip/base \
-I$(top_srcdir)/Vocal1.3.0RC1/sip/sipstack \
-I$(top_srcdir)/Vocal1.3.0RC1/util \
-I$(top_srcdir)/Vocal1.3.0RC1/util/io \
-I$(top_srcdir)/Vocal1.3.0RC1/util/config \
-I$(top_srcdir)/Vocal1.3.0RC1/util/logging \
-I$(top_srcdir)/Vocal1.3.0RC1/util/snmp \
-I$(top_srcdir)/Vocal1.3.0RC1/util/threads \
-I$(top_srcdir)/Vocal1.3.0RC1/util/transport \
-I$(top_srcdir)/Vocal1.3.0RC1/util/deprecated \
-DVOCAL_USE_DEPRECATED
siptest_SOURCES = main.cxx
siptest_LDADD = $(top_builddir)/sipstack/libvoipzon_sipstack.la
siptest_DEPENDENCIES = $(top_builddir)/sipstack/libvoipzon_sipstack.la
siptest_static_SOURCES = $(siptest_SOURCES)
siptest_static_LDADD = $(siptest_LDADD)
siptest_static_DEPENDENCIES = $(siptest_DEPENDENCIES)
siptest_static_LDFLAGS = $(STATIC)
------------------------------------------------------------
This is the sip/sipstack/Makefile.am file
-------------------------------------------------------------
AUTOMAKE_OPTIONS = no-dependencies foreign
INCLUDES = -I$(top_srcdir) \
-I$(top_srcdir)/Vocal1.3.0RC1/sdp \
-I$(top_srcdir)/Vocal1.3.0RC1/sip/base \
-I$(top_srcdir)/Vocal1.3.0RC1/sip/sipstack \
-I$(top_srcdir)/Vocal1.3.0RC1/util \
-I$(top_srcdir)/Vocal1.3.0RC1/util/io \
-I$(top_srcdir)/Vocal1.3.0RC1/util/config \
-I$(top_srcdir)/Vocal1.3.0RC1/util/logging \
-I$(top_srcdir)/Vocal1.3.0RC1/util/snmp \
-I$(top_srcdir)/Vocal1.3.0RC1/util/threads \
-I$(top_srcdir)/Vocal1.3.0RC1/util/transport \
-I$(top_srcdir)/Vocal1.3.0RC1/util/deprecated \
-DVOCAL_USE_DEPRECATED
hxx_sources = SessionContainer.hxx \
IStackEventListener.hxx \
IStackInterface.hxx \
MessageCache.hxx \
MrshlBasicProxy.hxx \
MrshlOpInvite.hxx \
MrshlOpRegister.hxx \
MrshlOpAck.hxx \
MrshlOpBye.hxx \
MrshlOpCancel.hxx \
MrshlOpStatus.hxx \
MrshlOpProxy.hxx \
Marshal.hxx \
StackInterfaceSipImpl.hxx \
NameValuePair.hxx
cxx_sources = IStackEventTest.cxx SessionContainer.cxx \
MessageCache.cxx \
MrshlBasicProxy.cxx \
MrshlOpInvite.cxx \
MrshlOpRegister.cxx \
MrshlOpAck.cxx \
MrshlOpBye.cxx \
MrshlOpCancel.cxx \
MrshlOpStatus.cxx \
MrshlOpProxy.cxx \
Marshal.cxx \
StackInterfaceSipImpl.cxx \
NameValuePair.cxx
#lib_LTLIBRARIES= libvoipzon_sipstack.la
noinst_LTLIBRARIES = libvoipzon_sipstack.la
libvoipzon_sipstack_la_SOURCES= $(hxx_sources) $(cxx_sources)
libvoipzon_sipstack_la_DEPENDENCIES=$(top_builddir)/Vocal1.3.0RC1/sdp/libsdp.a
\
$(top_builddir)/Vocal1.3.0RC1/sip/base/libproxyBase.a \
$(top_builddir)/Vocal1.3.0RC1/sip/sipstack/libsip.a \
$(top_builddir)/Vocal1.3.0RC1/util/libutil.a
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- linking a nonlibtool lib into a libtool-lib,
Maria Yndefors <=