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