To make an msdev project, you have to duplicate *all* of the build
directives, paths, etc.
define XP_PC, XP_WIN (for debug and release), and DEBUG (for debug
only)
select the multithreaded runtime library
set the appropriate include paths (there are two)
set the appropriate lib path (it appears this is what you are missing)
etc, etc..
I did all this a couple times, but my binaries never built exactly the
same (size) as the mozilla cmd line versions. I stick to the cmdline
now -- works fine under win2k.
On Sat, 10 Mar 2001 16:03:06 -0800, "Steve Williams"
<[EMAIL PROTECTED]> wrote:
>Guys,
>
> I've created an MSDev .dsp project for WinEmbed. When I build I get the
>linker errors shown below.
>It looks as though I've simply missed out a library or two. Any pointers as
>to my oversight would
>be appreciated. My mozilla build using standard makefiles works fine.
>
>Cheers,
>Steve.
>
>xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
>nsQueryInterface::nsQueryInterface(class nsQueryInterface const &)"
>(??0nsQueryInterface@@QAE@ABV0@@Z) already defined in DT_winEmbed.obj
>xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
>nsQueryInterface::nsQueryInterface(class nsISupports *,unsigned int *)"
>(??0nsQueryInterface@@QAE@PAVnsISupports@@PAI@Z) already defined in
>DT_winEmbed.obj
>xpcom.lib(xpcom.dll) : warning LNK4006: "public: __thiscall
>nsQueryInterface::nsQueryInterface(class nsQueryInterface const &)"
>(??0nsQueryInterface@@QAE@ABV0@@Z) already defined in DT_winEmbed.obj;
>second definition ignored
>xpcom.lib(xpcom.dll) : warning LNK4006: "public: __thiscall
>nsQueryInterface::nsQueryInterface(class nsISupports *,unsigned int *)"
>(??0nsQueryInterface@@QAE@PAVnsISupports@@PAI@Z) already defined in
>DT_winEmbed.obj; second definition ignored
> Creating library Debug/DTSurf.lib and object Debug/DTSurf.exp
>LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
>libs; use /NODEFAULTLIB:library
>DT_winEmbed.obj : error LNK2001: unresolved external symbol "public:
>__thiscall nsCOMPtr_base::~nsCOMPtr_base(void)" (??1nsCOMPtr_base@@QAE@XZ)
>WebBrowserChrome.obj : error LNK2001: unresolved external symbol "public:
>__thiscall nsCOMPtr_base::~nsCOMPtr_base(void)" (??1nsCOMPtr_base@@QAE@XZ)
>DT_winEmbed.obj : error LNK2001: unresolved external symbol _PL_strncpy
>WebBrowserChrome.obj : error LNK2001: unresolved external symbol "public:
>virtual unsigned int __thiscall
>nsSupportsWeakReference::GetWeakReference(class nsIWeakReference * *)"
>(?GetWeakReference@nsSupportsWeakReference@@UAEIPAPAVnsIWeakReference@@@
>Z)
>WebBrowserChrome.obj : error LNK2001: unresolved external symbol _PL_strcmp
>
>