Sean Moore wrote:
>I am trying to build the mfcembed example pulled out of the tree.
>I am also trying to build in the VC environment.
>
>All of the code compiles but I get link errors listed below.
>Any suggestions??
>
>Thanks,
>Sean
>
>
>xpcom.lib(xpcom.dll) : error LNK2005: "public: virtual __thiscall
>nsAString::~nsAString(void)" (??1nsAString@@UAE@XZ) already defined in
>BrowserView.obj
>xpcom.lib(xpcom.dll) : error LNK2005: "public: void __thiscall
>nsDependentString::Rebind(unsigned short const *,unsigned int)"
>(?Rebind@nsDependentString@@QAEXPBGI@Z) already defined in MfcEmbed.obj
>xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
>nsAFlatString::nsAFlatString(void)" (??0nsAFlatString@@QAE@XZ) already
>defined in ProfileMgr.obj
>
>
If you are trying to make a .dsp file for mfcembed (as apposed to using
an external makefile), then you need to include XP_WIN in Preprocessor
definitions