Re: gfxASurface and Win32 friends

"[email protected]" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.embedding
Organization NovaDSP
Message-ID <[email protected]>
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_OBJDIR=@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@@QAE@ABUgfxIntSize@@W4gfxImageFormat@gfxASurface@@@Z) 
referenced in function "public: unsigned char * __thiscall 
CBrowserImpl::grabWindow(int,int,int,int)" 
(?grabWindow@CBrowserImpl@@QAEPAEHHHH@Z)

BrowserImpl.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall 
gfxIntSize::gfxIntSize(int,int)" (__imp_??0gfxIntSize@@QAE@HH@Z) 
referenced in function "public: unsigned char * __thiscall 
CBrowserImpl::grabWindow(int,int,int,int)" 
(?grabWindow@CBrowserImpl@@QAEPAEHHHH@Z)

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

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

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

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

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

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

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

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

BrowserImpl.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: unsigned long __thiscall 
gfxASurface::Release(void)" (__imp_?Release@gfxASurface@@QAEKXZ) 
referenced in function "public: __thiscall nsRefPtr::~nsRefPtr(void)" 
(??1?$nsRefPtr@VgfxWindowsSurface@@@@QAE@XZ)

BrowserImpl.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: unsigned long __thiscall 
gfxASurface::AddRef(void)" (__imp_?AddRef@gfxASurface@@QAEKXZ) 
referenced in function "public: __thiscall nsRefPtr::nsRefPtr(class 
gfxWindowsSurface *)" 
(??0?$nsRefPtr@VgfxWindowsSurface@@@@QAE@PAVgfxWindowsSurface@@@Z)

R:\src\mozilla\MozMFC\Debug\MozMFC.exe : fatal error LNK1120: 12 
unresolved externals
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.