On Jul 2, 8:56 pm, [EMAIL PROTECTED] wrote:
> On Jul 2, 5:39 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote:
> > > include/layout/nsPresContext.h:339: undefined reference to
> > > `nsPresContext::GetContainerInternal()'
>
> > That means that you're defining _IMPL_NS_LAYOUT in your code for some
> > reason but
> > not linking your code as part of the layout library. You don't want to
> > define that.
>
> > -Boris
>
> Thanks. I have remove _IMPL_NS_LAYOUT in my Makefile.in, but I still
> get the same error:
>
> ../../../../dist/lib/libbase_s.a(MyIDOMEventListener.o): In function
> `nsPresContext::GetContainer()':
> /home/schultz/mozilla/firefox-objdir/dom/src/blocks/../../../dist/
> include/layout/nsPresContext.h:339: undefined reference to
> `nsPresContext::GetContainerInternal()'
> collect2: ld returned 1 exit status
>
> Can you please tell me what else I should do?
>
> Thank you.
I have checked the gcc output during linking and I notice that it does
not have "../../dist/lib/libgkstyle_s.a ../../dist/lib/
libgkprinting_s.a ../../dist/lib/libgktable_s.a ../../dist/lib/
libgkxulbase_s.a":
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -
Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-
non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -
pipe -DDEBUG -D_DEBUG -DDEBUG_scheung -DTRACING -g -fno-inline -O -I/
usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -
I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/
libpng12 -o MyTest MyTest.o -L../../../../dist/bin -
L../../../../dist/lib -lgtkembedmoz -lgnet-2.0 -lnovblocks_s -ldl -
lm -L../../../../dist/bin -lmozjs -L../../../../dist/bin -lxpcom -
lxpcom_core -L../../../../dist/bin -L../../../../dist/lib -lplds4 -
lplc4 -lnspr4 -lpthread -ldl -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -
lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -
lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -
lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
But I have added this in my Makefile.in:
REQUIRES = xpcom \
dom \
string \
webbrwsr \
commandhandler \
js \
locale \
widget \
gfx \
layout \
content \
caps \
docshell \
xpconnect \
pref \
oji \
necko \
mimetype \
uriloader \
xuldoc \
webshell \
view \
uconv \
shistory \
plugin \
windowwatcher \
chardet \
appshell \
imglib2 \
xul \
$(NULL)
My question is how come i don't see all the dist/bin/**.a get linked
when I link my plugins.
Thank you.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout