Anton,
Your suggestions have helped quite a bit. I can now get it to compile but
still having linking issues.
Here is a copy of the link errors if anyone can be of any help with them.--------------------
--------------------Configuration: myembed - Win32 Debug-------------------- Linking... xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall nsGetServiceByContractID::nsGetServiceByContractID(char const *,class nsISupports *,unsigned int *)" (??0nsGetServiceByContractID@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in MfcEmbed.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall nsCreateInstanceByContractID::nsCreateInstanceByContractID(char const *,class nsISupports *,unsigned int *)" (??0nsCreateInstanceByContractID@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]) already defined in BrowserView.obj
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
MfcEmbed.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
MostRecentUrls.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
ProfilesDlg.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
winEmbedFileLocProvider.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
BrowserFrameGlue.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
BrowserView.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
CPageSetupPropSheet.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
EditorFrm.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteACString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
ProfileMgr.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
ProfilesDlg.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
BrowserFrameGlue.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
BrowserView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
CPageSetupPropSheet.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
EditorFrm.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * const nsCharTraits<unsigned short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)
MfcEmbed.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
ProfileMgr.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
ProfilesDlg.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
BrowserFrameGlue.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
BrowserView.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
CPageSetupPropSheet.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
EditorFrm.obj : error LNK2001: unresolved external symbol "public: static void const * const nsObsoleteAString::sCanonicalVTable" ([EMAIL PROTECTED]@@2PBXB)
MfcEmbed.obj : error LNK2001: unresolved external symbol _XPCOMGlueStartup MfcEmbed.obj : error LNK2001: unresolved external symbol _GRE_GetXPCOMPath MfcEmbed.obj : error LNK2001: unresolved external symbol _XPCOMGlueShutdown MfcEmbed.obj : error LNK2001: unresolved external symbol "public: static char const * const nsCharTraits<char>::sEmptyBuffer" ([EMAIL PROTECTED]@D@@2PBDB)
winEmbedFileLocProvider.obj : error LNK2001: unresolved external symbol "public: static char const * const nsCharTraits<char>::sEmptyBuffer" ([EMAIL PROTECTED]@D@@2PBDB)
MfcEmbed.obj : error LNK2001: unresolved external symbol __imp__PR_AtomicIncrement MfcEmbed.obj : error LNK2001: unresolved external symbol __imp__PR_AtomicDecrement
winEmbedFileLocProvider.obj : error LNK2001: unresolved external symbol _GRE_GetGREDirectory
Debug/myembed.exe : fatal error LNK1120: 10 unresolved externals Error executing link.exe.
myembed.exe - 32 error(s), 1 warning(s)
Anton Bar wrote:
Hi Randy,
I actually managed to build DSW from the scratch. It takes some time and as anything else in Open Source, involves some degree of masochism.
Here are the steps (I assume that you downloaded and built Mozilla):
1) Create new project and add all CPP and H files listed in MfcEmbed.dsp (open it in notepad and see the source file group)
2) Set the following Preprocessor Definitions for DEBUG: "_DEBUG,XP_WIN,XP_WIN32,MOZILLA_STRICT_API,XPCOM_GLUE,_X86_,WIN32,_WINDOWS,_MBCS,_USRDLL,NPSIMPLE_EXPORTS"
and for RELEASE
"NDEBUG,XP_WIN,XP_WIN32,MOZILLA_STRICT_API,XPCOM_GLUE,_X86_,WIN32,_WINDOWS,_MBCS,_USRDLL,NPSIMPLE_EXPORTS"
3) Set the following INCLUDE directories (for both Debug and Release):
"\gecko-sdk\nspr\include,\gecko-sdk\java\include,\gecko-sdk\xpcom\include,\gecko-sdk"
of course it depends on the actual location of gecko-sdk
4) Link with the following libs: "kernel32.lib user32.lib gdi32.lib nspr4.lib embed_base_s.lib xpcom.lib xpcomglue.lib plc4.lib"
5) Set additional lib path to the mozilla lib directory
6) Close your eyes, say a little prayer and hit F7 :-)
7) Curse when you see the whole lotta error messages, fix what you can and repeat #6.
If all this fail please don't hesitate to ask for further info.
Greetings from Israel, Anton Bar.
Randy wrote:
B�atrice,
Thanks for the info, I'll try that. I have to use VStudio for my compilation because I'm working on a project for my company and they don't want to switch other developers over to gcc.
I'd still like specific instructions on how to set up the project if I'm creating a new project and adding all the .cpp and .h files. For instance what about project "settings" like defines, includes and libraries?
Would you be willing to email me a zip of the project you created in VStudio?
Thanks again!
Mozilla.embedding wrote:
hi Randy,
i had the same problem. So the best solution is to create a new project and
a all ".cpp" and ".h" files of winembed (for example) and recompile all the
project. If it still doesn't work, don't waste time. Gcc compiler is working
well for winembed. I 'm working on a new application based on winembed and
actually, i use Visual C++ 6 studio for the project, but i compile well with
Gcc.
--
B�atrice Philippe
[EMAIL PROTECTED] "Randy" <[EMAIL PROTECTED]> a �crit dans le message de news: [EMAIL PROTECTED]
I'm trying to load the mfcEmbed.dsw project into my VisualStudio 6.0 SP5
with Processor Pack and it doesn't load. I don't get an error or anything.
It just does nothing.
I have also tried to load the mfcEmbed.dsp file and it says it was not
generated by Developer Studio.
Am I missing something obvious here? It seems like others on this
newsgroup have loaded it just fine.
I have also tried loading the winembed.dsp only to get the same error???
Is my VStudio install messed up?
My goal is to embed using Gecko and I have read many of the pages on
mozilla.org and have had no luck getting anything to compile yet.
I have downloaded gecko-sdk-i586-pc-msvc-1.7rc2.zip along with the 1.7rc2
mozilla sources. I have cygwin and the moztools installed.
Thanks for any help!!!
_______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
