apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damir Dezeljin <program...@nib.si>
Subject Problem linking - please help???
Date Wed, 06 Nov 2002 19:59:33 GMT
Hi.

I'm using some headers from apr-utils (ex. apr_queue.h).

When I try to compile a program I get errors like:
/home/damird/apr/lib/libaprutil-0.so: undefined reference to
  `XML_SetElementHandler'

(there are more similar lines)

My Makefile:
----
srcdir      = .
PROGRAMS    = \
    test

TARGETS = $(PROGRAMS)

include /usr/local/apr/build/rules.mk

EXTRA_CFLAGS    += -DDEBUG

LOCAL_LIBS=/usr/local/lib/libapr-${APR_MAJOR_VERSION}.la \
	/usr/local/lib/libaprutil-${APR_MAJOR_VERSION}.la  \
	/usr/local/lib/libmy_lib.a

INCDIR=/usr/local/apr/include/apr-0
INCLUDES=-I$(INCDIR)

test:       test.lo $(LOCAL_LIBS)
    echo $(LOCAL_LIBS)
    $(LINK) test.lo $(LOCAL_LIBS) $(ALL_LIBS)

debug:  clean all
----

Content of /usr/local/lib:
apr.exp
aprutil.exp
libapr-0.a
libapr-0.la
libapr-0.so
libapr-0.so.0
libapr-0.so.0.9.2
libaprutil-0.a
libaprutil-0.la
libaprutil-0.so
libaprutil-0.so.0
libaprutil-0.so.0.9.2



Prior that I include apr_queue.h and add
/usr/local/lib/libaprutil-${APR_MAJOR_VERSION}.la to LOCAL_LIBS, all works
fine. Now I'm using some functions from apr-util and I don't know how to
compile my sources.

Please help me.

Regards,
Dezo



Mime
View raw message