Hi there,

I was trying to compile WinEmbed using VS 2005 on a WIN XP machine.
For that I checked out the latest mozilla head from CVS and built 
XULRunner. I have a working XULRunner distro and after calling 
"xulrunner --register-global" I can run also WinEmbed and it opens up 
nicely and I can browse all kinds of pages.

Now the problems start when I try building WinEmbed with VS 2005.
I created a project (based on a conversion of the VS6 project that comes 
with the checkout).
I am linking against the following libraries in obj-xulrunner/dist/lib 
(not the SDK):
xpcomglue.lib
nspr4.lib
profdirserviceprovidersa_s.lib

furthermore I use the (i believe) correct includes, so the compiler does 
not complain:
"..\..\..\obj-xulrunner\dist\include\xpcom";
"..\..\..\obj-xulrunner\dist\include\string";
"..\..\..\obj-xulrunner\dist\include\embed_base";
"..\..\..\obj-xulrunner\dist\include\webbrwsr";
"..\..\..\obj-xulrunner\dist\include\webshell";
"..\..\..\obj-xulrunner\dist\include\windowwatcher";
"..\..\..\obj-xulrunner\dist\include\profile";
"..\..\..\obj-xulrunner\dist\include\necko";
"..\..\..\obj-xulrunner\dist\include\docshell";
"..\..\..\obj-xulrunner\dist\include\dom";
"..\..\..\obj-xulrunner\dist\include\widget";
"..\..\..\obj-xulrunner\dist\include\uriloader";
"..\..\..\obj-xulrunner\dist\include\shistory";
"..\..\..\obj-xulrunner\dist\include\webbrowserpersist";
"..\..\..\obj-xulrunner\dist\include\profdirserviceprovider";
"..\..\..\obj-xulrunner\dist\include\xulapp";
"..\..\..\obj-xulrunner\dist\include\nspr";
"..\..\..\obj-xulrunner\dist\include"

And I am using the following preprocessor definitions:

XPCOM_GLUE
MOZ_DEBUG
_WINDOWS
_WIN32
_DEBUG
XP_WIN
XP_WIN32

Now, I got it almost done. The only thing that still keeps popping up 
are the following linker errors:

Error   1       error LNK2019: unresolved external symbol "public: wchar_t 
const 
* __thiscall nsAString::BeginReading(void)const " 
([EMAIL PROTECTED]@@QBEPB_WXZ) referenced in function "public: 
wchar_t const * __thiscall nsString_external::get(void)const " 
([EMAIL PROTECTED]@@QBEPB_WXZ)  WebBrowserChrome.obj

...and...

Error   2       error LNK2001: unresolved external symbol "public: wchar_t 
const 
* __thiscall nsAString::BeginReading(void)const " 
([EMAIL PROTECTED]@@QBEPB_WXZ)  winEmbed.obj

This cost me the whole day, I have been googleing until my fingers bled, 
read this newsgroup's entries until my eyes were sore, and still the 
problem remains unsolved.

Does anybody have a clue, what's missing? Is it a define, or is it a 
library, or are there exports missing in whatever library hosts nsAString?

Any help will be greatly appreciated. I think embedding with XULRunner 
is quite elegant (at least in comparison to fiddling around with firefox 
directly). And I really want to get this working.

Thanks

Florian
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to