Benjamin

What are you linking against? If possible, please include your exact compile and link command-line so that I can check your #defines and import libraries.

Thanks. Hope this is adequate. Linker errors at end of email

Using VS2008 Pro.

Compiler command line:

cl /Od /I "U:\mozilla\mozilla-1.9.2\_VS2008\xul-debug\dist\include"
/D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "XP_WIN" /D "XPCOM_GLUE"
/D "_AFXDLL" /D "_MBCS" /FD /EHsc /MDd /Zc:wchar_t- /Yu"stdafx.h"
/Fp"Debug\MozMFC.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /Zi /TP 
.\BrowserImpl.cpp

Linker command line:

/OUT:"R:\src\mozilla\MozMFC\Debug\MozMFC.exe"
/LIBPATH:"U:\mozilla\mozilla-1.9.2\_VS2008\xul-debug\dist\lib"
/MANIFEST /MANIFESTFILE:"Debug\MozMFC.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/DEBUG /PDB:"R:\src\mozilla\MozMFC\Debug\MozMFC.pdb"
/SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 ".\Debug\AppDoc.obj"

".\Debug\BrowserFrm.obj"

".\Debug\BrowserImpl.obj"

".\Debug\BrowserView.obj"

".\Debug\MozMFC.obj"

".\Debug\StdAfx.obj"

".\Debug\MFCPrintingPromptService.obj"

".\Debug\MFCPrintProgress.obj"

".\Debug\MFCProgressParams.obj"

".\Debug\PrintProgressDialog.obj"

".\Debug\PrintSettings.obj"

".\Debug\DlgAbout.obj"

".\Debug\DlgEdit.obj"

".\Debug\GeckoDC.obj"

".\Debug\MozMFC.res"


Mozconfig is:

ac_add_options --enable-application=xulrunner
mk_add_options MOZ_MAKE_FLAGS=-j1
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options moz_objd...@topsrcdir@/_VS2008/xul-debug

ac_add_options --enable-debug
ac_add_options --disable-optimize

ac_add_options --enable-libxul

ac_add_options --disable-tests
ac_add_options --disable-javaxpcom
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting

ac_add_options --disable-installer
ac_add_options --disable-updater

ac_add_options --disable-safe-browsing
ac_add_options --disable-parentals-controls

ac_add_options --disable-pref-extensions
ac_add_options --disable-profilelocking
ac_add_options --disable-feeds
ac_add_options --disable-places
ac_add_options --disable-morkreader
ac_add_options --disable-ogg
ac_add_options --disable-sydneyaudio
ac_add_options --disable-crashreporter
ac_add_options --disable-viewsource
ac_add_options --disable-cookies

// errors
BrowserImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall gfxWindowsSurface::gfxWindowsSurface(struct gfxIntSize const &,enum gfxASurface::gfxImageFormat)" (__imp_??0gfxWindowsSurface@@q...@abugfxintsize@@w4gfximagefor...@gfxasurface@@@Z) referenced in function "public: unsigned char * __thiscall CBrowserImpl::grabWindow(int,int,int,int)" (?grabwin...@cbrowserimpl@@qaepaeh...@z)

BrowserImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall gfxIntSize::gfxIntSize(int,int)" (__imp_??0gfxIntSize@@q...@hh@Z) referenced in function "public: unsigned char * __thiscall CBrowserImpl::grabWindow(int,int,int,int)" (?grabwin...@cbrowserimpl@@qaepaeh...@z)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall gfxWindowsSurface::BeginPrinting(class nsAString const &,class nsAString const &)" (?beginprint...@gfxwindowssurface@@UAEIABVnsAString@@0...@z)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall gfxWindowsSurface::EndPrinting(void)" (?endprint...@gfxwindowssurface@@UAEIXZ)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall gfxWindowsSurface::AbortPrinting(void)" (?abortprint...@gfxwindowssurface@@UAEIXZ)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall gfxWindowsSurface::BeginPage(void)" (?beginp...@gfxwindowssurface@@UAEIXZ)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall gfxWindowsSurface::EndPage(void)" (?endp...@gfxwindowssurface@@UAEIXZ)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall gfxASurface::Finish(void)" (?fin...@gfxasurface@@UAEXXZ)

BrowserImpl.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall gfxWindowsSurface::GetDefaultContextFlags(void)const " (?getdefaultcontextfl...@gfxwindowssurface@@UBEHXZ)

BrowserImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall gfxWindowsSurface::~gfxWindowsSurface(void)" (__imp_??1gfxWindowsSurface@@u...@xz) referenced in function "public: virtual void * __thiscall gfxWindowsSurface::`scalar deleting destructor'(unsigned int)" (??_GgfxWindowsSurface@@uaep...@z)

BrowserImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall gfxASurface::Release(void)" (__imp_?rele...@gfxasurface@@QAEKXZ) referenced in function "public: __thiscall nsRefPtr::~nsRefPtr(void)" (??1?$nsref...@vgfxwindowssurface@@@@q...@xz)

BrowserImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall gfxASurface::AddRef(void)" (__imp_?add...@gfxasurface@@QAEKXZ) referenced in function "public: __thiscall nsRefPtr::nsRefPtr(class gfxWindowsSurface *)" (??0?$nsref...@vgfxwindowssurface@@@@q...@pavgfxwindowssurface@@@Z)

R:\src\mozilla\MozMFC\Debug\MozMFC.exe : fatal error LNK1120: 12 unresolved externals

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

Reply via email to