automake
[Top][All Lists]
Advanced

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

_la_SOURCES Makro does not link all defined sources...


From: Steve
Subject: _la_SOURCES Makro does not link all defined sources...
Date: Tue, 11 Oct 2005 23:49:54 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050921)

Hi,
i have the following problem:

I generated a shared library with automake and libtool.

My Makefile.am looks like this:
-------------
lib_LTLIBRARIES = libnsHTMLValidator.la
libnsHTMLValidator_la_SOURCES = nsVector.cpp nsHTMLValidator.cpp
libnsHTMLValidator_la_LIBADD = ./access.o \
 ./alloc.o \
 ./attrs.o \
 ./config.o \
 ./istack.o \
 ./pprint.o \
 ./tidylib.o \
 ./attrask.o \
 ./buffio.o \
 ./entities.o \
 ./lexer.o \
 ./streamio.o \
 ./tmbstr.o \
 ./attrdict.o \
 ./charsets.o \
 ./fileio.o \
 ./localize.o \
 ./tagask.o \
 ./utf8.o \
 ./attrget.o \
 ./clean.o \
 ./iconvtc.o \
 ./parser.o \
 ./tags.o \
 ./win32tc.o
INCLUDES = -I$(top_srcdir)/include
----------
The buildet library should be intergrated in mozilla- firefox as a plugin...
Now when i call a method from this library
firefox crashes with the following error message:
-------------
/usr/lib/mozilla-firefox/firefox-bin: symbol lookup error: /home/redwing/.mozill
a/firefox/2672ipxo.default/extensions/{7bddcea3-87bb-4eb0-ac29-3ba39d1c8a65}/com
ponents/nsHTMLValidator.so: undefined symbol: _ZN8nsVectorI8nsCOMPtrI17nsIValida
torErrorEEC1Ev
-------------
So everytime when i call a function defined in nsVector.cpp it cannot
find the symbol of this function. So i think the object file of nsVector.cpp is not linked
against this library...
When i defined all Functions in one file (nsHTMLValidator.cpp) it works for me,
but that cannot be the way to rome.

Can anyone help me to figure out why?

Thanks in advance...

Steve




reply via email to

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