Hi, I'm assuming your are using VC++ to build and not the make file.
Here are a few quick suggestions from what I've done to get my builds from trunk working: - use compiler flag XP_WIN - you also need to link with $(MOZSRC)/build//profile/dirserviceprovider/standalone/profdirserviceprovidersa_s.lib - use the option /Zc:wchar_t- (Treat wchar_t as built-in type = No, under C/C++ > Language) Another option may be to look at the options used for cl and link when building with the make file. Hope this works for you, -Pelle [EMAIL PROTECTED] wrote: > Hello I have a problem with winembeded Mozilla 3.0 test program > compiling. > > First of all I build a Mozilla 3.0 source from 3.0b5/source/ > firefox-3.0b5-source.tar.bz2 through this mozconfig file: > > # sh > # Build configuration script > # > # See http://www.mozilla.org/build/unix.html for build instructions. > # > # Options for 'configure' (same as command-line options). > . $topsrcdir/browser/config/mozconfig > mk_add_options MOZ_OBJDIR=../build > ac_add_options --enable-optimize > ac_add_options --disable-debug > ac_add_options --disable-tests > ac_add_options --enable-svg > ac_add_options --disable-installer > > > > The mozilla 3.0 sources build working well. > > > > After, I use $(MOZSRC)/build/dist/include and $(MOZSRC)/build/dist/ > lib/ LIBs for my test project. > I use a Compiler flag: XPCOM_GLUE and xpcomglue.lib to link. > Systematically I have this link error. Do you have any ideas? > > Thank you for you helps ! > > Linking... > > WebBrowserChrome.obj : error LNK2001: unresolved external symbol > "public: void __thiscall nsCOMPtr_base::assign_from_qi(class > nsQueryInterface,struct nsID const &)" (? > [EMAIL PROTECTED]@@QAEXVnsQueryInterface@@ABUnsID@@@Z) > > winembed.obj : error LNK2001: unresolved external symbol "public: void > __thiscall nsCOMPtr_base::assign_from_qi(class nsQueryInterface,struct > nsID const &)" (? > [EMAIL PROTECTED]@@QAEXVnsQueryInterface@@ABUnsID@@@Z) > > WebBrowserChrome.obj : error LNK2001: unresolved external symbol > "public: void __thiscall nsCOMPtr_base::assign_from_helper(class > nsCOMPtr_helper const &,struct nsID const &)" (? > [EMAIL PROTECTED]@@QAEXABVnsCOMPtr_helper@@ABUnsID@@@Z) > > winembed.obj : error LNK2001: unresolved external symbol "public: void > __thiscall nsCOMPtr_base::assign_from_helper(class nsCOMPtr_helper > const &,struct nsID const &)" (? > [EMAIL PROTECTED]@@QAEXABVnsCOMPtr_helper@@ABUnsID@@@Z) > > WebBrowserChrome.obj : error LNK2001: unresolved external symbol > "public: virtual unsigned int __thiscall > nsCreateInstanceByContractID::operator()(struct nsID const &,void * > *)const " (??RnsCreateInstanceByContractID@@UBEIABUnsID@@[EMAIL PROTECTED]) > > WebBrowserChrome.obj : error LNK2001: unresolved external symbol > "public: void __thiscall nsCOMPtr_base::assign_with_AddRef(class > nsISupports *)" (? > [EMAIL PROTECTED]@@QAEXPAVnsISupports@@@Z) > > winembed.obj : error LNK2001: unresolved external symbol "public: void > __thiscall nsCOMPtr_base::assign_with_AddRef(class nsISupports *)" (? > [EMAIL PROTECTED]@@QAEXPAVnsISupports@@@Z) > > WindowCreator.obj : error LNK2001: unresolved external symbol > "unsigned int __cdecl NS_TableDrivenQI(void *,struct QITableEntry > const *,struct nsID const &,void * *)" (? > NS_TableDrivenQI@@YAIPAXPBUQITableEntry@@ABUnsID@@[EMAIL PROTECTED]) > > winembed.obj : error LNK2001: unresolved external symbol "public: void > __thiscall nsCOMPtr_base::assign_from_gs_contractid(class > nsGetServiceByContractID,struct nsID const &)" (? > [EMAIL PROTECTED]@@QAEXVnsGetServiceByContractID@ > > @ABUnsID@@@Z) > > winembed.obj : error LNK2001: unresolved external symbol "public: > virtual unsigned int __thiscall nsGetInterface::operator()(struct nsID > const &,void * *)const " (??RnsGetInterface@@UBEIABUnsID@@[EMAIL PROTECTED]) > > winembed.obj : error LNK2001: unresolved external symbol "public: void > __thiscall nsCOMPtr_base::assign_from_gs_contractid_with_error(class > nsGetServiceByContractIDWithError const &,struct nsID const &)" (? > [EMAIL PROTECTED] > > tr_base@@QAEXABVnsGetServiceByContractIDWithError@@ABUnsID@@@Z) > > xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external > symbol ___security_cookie > > xpcomglue.lib(nsStringAPI.obj) : error LNK2001: unresolved external > symbol ___security_cookie > > xpcomglue.lib(nsGREGlue.obj) : error LNK2001: unresolved external > symbol ___security_cookie > > xpcomglue.lib(nsGlueLinkingWin.obj) : error LNK2001: unresolved > external symbol ___security_cookie > > xpcomglue.lib(nsXPCOMGlue.obj) : error LNK2001: unresolved external > symbol @[EMAIL PROTECTED] > > xpcomglue.lib(nsStringAPI.obj) : error LNK2001: unresolved external > symbol @[EMAIL PROTECTED] > > xpcomglue.lib(nsGREGlue.obj) : error LNK2001: unresolved external > symbol @[EMAIL PROTECTED] > > xpcomglue.lib(nsGlueLinkingWin.obj) : error LNK2001: unresolved > external symbol @[EMAIL PROTECTED] > > xpcomglue.lib(nsGREGlue.obj) : error LNK2001: unresolved external > symbol "void * __cdecl operator new[](unsigned int)" ([EMAIL PROTECTED]@Z) > > Release/winembed.exe : fatal error LNK1120: 11 unresolved externals > > Error executing link.exe. > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
