hi!
thanks so much for your answers and patience! :) i disbled rtti form g++ ,re-compiled code
and it stopped to give me errros like type_info but now the new problem is an new linker error;


kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0x8): In function `nsDependentString::GetBufferHandle(void) const':
/usr/include/mozilla-1.3b/string/nsDependentString.h: undefined reference to `CPromptService::QueryInterface(nsID const &, void **)'
kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0xc):/usr/include/mozilla-1.3b/string/nsDependentString.h: undefined reference to `CPromptService::AddRef(void)'
kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0x10):/usr/include/mozilla-1.3b/string/nsDependentString.h: undefined reference to `CPromptService::Release(void)'


i added all -lgtkembedmoz -lplds4 -lplc4 -lnspr4 -lgtksuperwin -lxpcom libs with mozilla-1.3b and looked at galeon,skipstone and check out so much of the codes (about prompter) from them.
i'm trying to handle it but time is running out and i'have to fix it quickly. so what are your comments on this errors!?
Can it be about mozilla-1.3b???


thanks from now
goktan

Darin Fisher wrote:

goktan kantarcioglu wrote:


hi,
now i' m trying to make promt service for gtk_moz_embed with gtk 1.2 and i looked at skipstone, galeon and mozilla for examples... i wrote a code with help of these but when i compile program it is giving me linker error like



kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0x8): In function `nsISupports type_info function':
/usr/include/mozilla-1.3b/string/nsAFlatString.h: undefined reference to `CPromptService::QueryInterface(nsID const &, void **)'
kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0xc):/usr/include/mozilla-1.3b/string/nsAFlatString.h: undefined reference to `CPromptService::AddRef(void)'
kiosk_interface-PromptService.o(.gnu.linkonce.d.__vt_14CPromptService+0x10):/usr/include/mozilla-1.3b/string/nsAFlatString.h: undefined reference to `CPromptService::Release(void)'
kiosk_interface-PromptService.o(.gnu.linkonce.t.__tf13nsAFlatString+0x10):/usr/include/mozilla-1.3b/string/nsAFlatString.h: undefined reference to `nsASingleFragmentString type_info function'
kiosk_interface-PromptService.o(.gnu.linkonce.t.__tf13nsAFlatString+0x18): In function `CPromptService::~CPromptService(void)':
/home/goktan/Projects/kiosk_interface/src/PromptService.cpp:52: undefined reference to `nsASingleFragmentString type_info node'
collect2: ld returned 1 exit status



what am i missing to add???


goktan

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom



looks like two problems:


assuming CPromptService is the name of your class...

1) it looks like you haven't implemented the methods for nsISupports. perhaps you are missing a NS_IMPL_ISUPPORTS macro?

2) looks like you are compiling your source with C++ RTTI enabled. however, mozilla is compiled without RTTI support. that probably explains why the linker is complaining about not being able to locate "type_info" symbols.

hope this helps,
darin



_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to