我按照网上文章,把MFC和CUDA进行联调,MFC是对话框类型
但是出现链接错误,错误如下: 请问怎么解决啊?????实在搞不懂
1>Linking…
1>CUDAEXAM.obj : warning LNK4075: ignoring ‘/EDITANDCONTINUE’ due to ‘/INCREMENTAL:NO’ specification
1>nafxcwd.lib(afxinl2.obj) : error LNK2005: "class CWinApp * stdcall AfxGetApp(void)" (?AfxGetApp@@YGPAVCWinApp@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl2.obj) : error LNK2005: "public: struct HDC * thiscall CDC::GetSafeHdc(void)const " (?GetSafeHdc@CDC@@QBEPAUHDC@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl2.obj) : error LNK2005: “public: int thiscall CDC::DrawIcon(int,int,struct HICON *)” (?DrawIcon@CDC@@QAEHHHPAUHICON__@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: “public: static void __stdcall CObject::operator delete(void *)” (??3CObject@@SGXPAX@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: “void __cdecl operator delete(void *)” (??3@YAXPAX@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxmem.obj) : error LNK2005: “void __cdecl operator delete(void *)” (??_V@YAXPAX@Z) already defined in msvcrtd.lib(MSVCR90D.dll)
1>nafxcwd.lib(afxinl1.obj) : error LNK2005: “public: virtual void __thiscall CObject::Serialize(class CArchive &)” (?Serialize@CObject@@UAEXAAVCArchive@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual void __thiscall CWinThread::Delete(void)” (?Delete@CWinThread@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual int __thiscall CWinThread::IsIdleMessage(struct tagMSG *)” (?IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual int __thiscall CWinThread::PreTranslateMessage(struct tagMSG *)” (?PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual int __thiscall CWinThread::ProcessMessageFilter(int,struct tagMSG *)” (?ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual class CWnd * __thiscall CWinThread::GetMainWnd(void)” (?GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(thrdcore.obj) : error LNK2005: “public: virtual int __thiscall CWinThread::PumpMessage(void)” (?PumpMessage@CWinThread@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wingdi.obj) : error LNK2005: "public: thiscall CPaintDC::CPaintDC(class CWnd )" (??0CPaintDC@@QAE@PAVCWnd@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wingdi.obj) : error LNK2005: “public: virtual __thiscall CPaintDC::~CPaintDC(void)” (??1CPaintDC@@UAE@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual void __thiscall CWnd::PreSubclassWindow(void)” (?PreSubclassWindow@CWnd@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual class CMenu * __thiscall CWnd::GetMenu(void)const " (?GetMenu@CWnd@@UBEPAVCMenu@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::SetMenu(class CMenu )" (?SetMenu@CWnd@@UAEHPAVCMenu@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual void __thiscall CWnd::PostNcDestroy(void)” (?PostNcDestroy@CWnd@@MAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual void __thiscall CWnd::OnFinalRelease(void)” (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual int __thiscall CWnd::DestroyWindow(void)” (?DestroyWindow@CWnd@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual long (__stdcall thiscall CWnd::GetSuperWndProcAddr(void))(struct HWND *,unsigned int,unsigned int,long)" (?GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND@@IIJ@ZXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual void __thiscall CWnd::WinHelpInternal(unsigned long,unsigned int)” (?WinHelpInternal@CWnd@@UAEXKI@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual long __thiscall CWnd::WindowProc(unsigned int,unsigned int,long)” (?WindowProc@CWnd@@MAEJIIJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::OnWndMsg(unsigned int,unsigned int,long,long *)” (?OnWndMsg@CWnd@@MAEHIIJPAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::OnCommand(unsigned int,long)” (?OnCommand@CWnd@@MAEHIJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::OnNotify(unsigned int,long,long *)” (?OnNotify@CWnd@@MAEHIJPAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual class CScrollBar * __thiscall CWnd::GetScrollBarCtrl(int)const " (?GetScrollBarCtrl@CWnd@@UBEPAVCScrollBar@@H@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual void __thiscall CWnd::CalcWindowRect(struct tagRECT *,unsigned int)” (?CalcWindowRect@CWnd@@UAEXPAUtagRECT@@I@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::OnChildNotify(unsigned int,unsigned int,long,long *)” (?OnChildNotify@CWnd@@MAEHIIJPAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "protected: virtual struct AFX_INTERFACEMAP const * __thiscall CWnd::GetInterfaceMap(void)const " (?GetInterfaceMap@CWnd@@MBEPBUAFX_INTERFACEMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::EnsureStdObj(void)” (?EnsureStdObj@CWnd@@UAEJXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accParent(struct IDispatch * *)” (?get_accParent@CWnd@@UAEJPAPAUIDispatch@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accChildCount(long *)” (?get_accChildCount@CWnd@@UAEJPAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accChild(struct tagVARIANT,struct IDispatch * *)” (?get_accChild@CWnd@@UAEJUtagVARIANT@@PAPAUIDispatch@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accName(struct tagVARIANT,wchar_t * *)” (?get_accName@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accValue(struct tagVARIANT,wchar_t * *)” (?get_accValue@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accDescription(struct tagVARIANT,wchar_t * *)” (?get_accDescription@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accRole(struct tagVARIANT,struct tagVARIANT *)” (?get_accRole@CWnd@@UAEJUtagVARIANT@@PAU2@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accState(struct tagVARIANT,struct tagVARIANT *)” (?get_accState@CWnd@@UAEJUtagVARIANT@@PAU2@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accHelp(struct tagVARIANT,wchar_t * *)” (?get_accHelp@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accHelpTopic(wchar_t * *,struct tagVARIANT,long *)” (?get_accHelpTopic@CWnd@@UAEJPAPA_WUtagVARIANT@@PAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accKeyboardShortcut(struct tagVARIANT,wchar_t * *)” (?get_accKeyboardShortcut@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accFocus(struct tagVARIANT *)” (?get_accFocus@CWnd@@UAEJPAUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accSelection(struct tagVARIANT *)” (?get_accSelection@CWnd@@UAEJPAUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::get_accDefaultAction(struct tagVARIANT,wchar_t * *)” (?get_accDefaultAction@CWnd@@UAEJUtagVARIANT@@PAPA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::accSelect(long,struct tagVARIANT)” (?accSelect@CWnd@@UAEJJUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::accLocation(long *,long *,long *,long *,struct tagVARIANT)” (?accLocation@CWnd@@UAEJPAJ000UtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::accNavigate(long,struct tagVARIANT,struct tagVARIANT *)” (?accNavigate@CWnd@@UAEJJUtagVARIANT@@PAU2@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::accHitTest(long,long,struct tagVARIANT *)” (?accHitTest@CWnd@@UAEJJJPAUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::accDoDefaultAction(struct tagVARIANT)” (?accDoDefaultAction@CWnd@@UAEJUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::put_accName(struct tagVARIANT,wchar_t *)” (?put_accName@CWnd@@UAEJUtagVARIANT@@PA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::put_accValue(struct tagVARIANT,wchar_t *)” (?put_accValue@CWnd@@UAEJUtagVARIANT@@PA_W@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::SetProxy(struct IAccessibleProxy *)” (?SetProxy@CWnd@@UAEJPAUIAccessibleProxy@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual long __thiscall CWnd::CreateAccessibleProxy(unsigned int,long,long *)” (?CreateAccessibleProxy@CWnd@@UAEJIJPAJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual int __thiscall CWnd::ContinueModal(void)” (?ContinueModal@CWnd@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “public: virtual void __thiscall CWnd::EndModalLoop(int)” (?EndModalLoop@CWnd@@UAEXH@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual int __thiscall CWnd::IsFrameWnd(void)const " (?IsFrameWnd@CWnd@@UBEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::CreateControlContainer(class COleControlContainer * *)” (?CreateControlContainer@CWnd@@MAEHPAPAVCOleControlContainer@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(wincore.obj) : error LNK2005: “protected: virtual int __thiscall CWnd::CreateControlSite(class COleControlContainer *,class COleControlSite * *,unsigned int,struct _GUID const &)” (?CreateControlSite@CWnd@@MAEHPAVCOleControlContainer@@PAPAVCOleControlSite@@IABU_GUID@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: class CMenu * __thiscall CWnd::GetSystemMenu(int)const " (?GetSystemMenu@CWnd@@QBEPAVCMenu@@H@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: int thiscall CWnd::IsIconic(void)const " (?IsIconic@CWnd@@QBEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “public: void thiscall CWnd::GetClientRect(struct tagRECT *)const " (?GetClientRect@CWnd@@QBEXPAUtagRECT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: "public: struct HICON * thiscall CWnd::SetIcon(struct HICON *,int)” (?SetIcon@CWnd@@QAEPAUHICON@@PAU2@H@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “protected: void __thiscall CWnd::OnSysCommand(unsigned int,long)” (?OnSysCommand@CWnd@@IAEXIJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “protected: virtual void __thiscall CWnd::DoDataExchange(class CDataExchange *)” (?DoDataExchange@CWnd@@MAEXPAVCDataExchange@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “public: virtual void __thiscall CWnd::BeginModalState(void)” (?BeginModalState@CWnd@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “public: virtual void __thiscall CWnd::EndModalState(void)” (?EndModalState@CWnd@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(afxinl3.obj) : error LNK2005: “public: virtual int __thiscall CDialog::Create(unsigned int,class CWnd *)” (?Create@CDialog@@UAEHIPAVCWnd@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: static struct AFX_MSGMAP const * __stdcall CDialog::GetThisMessageMap(void)” (?GetThisMessageMap@CDialog@@KGPBUAFX_MSGMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::PreTranslateMessage(struct tagMSG *)” (?PreTranslateMessage@CDialog@@UAEHPAUtagMSG@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)” (?OnCmdMsg@CDialog@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual __thiscall CDialog::~CDialog(void)” (??1CDialog@@UAE@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: void __thiscall CDialog::OnPaint(void)” (?OnPaint@CDialog@@IAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::CreateIndirect(void *,class CWnd *)” (?CreateIndirect@CDialog@@UAEHPAXPAVCWnd@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::CreateIndirect(struct DLGTEMPLATE const *,class CWnd *,void *)” (?CreateIndirect@CDialog@@UAEHPBUDLGTEMPLATE@@PAVCWnd@@PAX@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: virtual int __thiscall CDialog::SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO *)” (?SetOccDialogInfo@CDialog@@MAEHPAU_AFX_OCC_DIALOG_INFO@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: virtual struct _AFX_OCC_DIALOG_INFO * __thiscall CDialog::GetOccDialogInfo(void)” (?GetOccDialogInfo@CDialog@@MAEPAU_AFX_OCC_DIALOG_INFO@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: __thiscall CDialog::CDialog(unsigned int,class CWnd *)” (??0CDialog@@QAE@IPAVCWnd@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::DoModal(void)” (?DoModal@CDialog@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: virtual void __thiscall CDialog::PreInitDialog(void)” (?PreInitDialog@CDialog@@MAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual void __thiscall CDialog::OnSetFont(class CFont *)” (?OnSetFont@CDialog@@UAEXPAVCFont@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::OnInitDialog(void)” (?OnInitDialog@CDialog@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: virtual void __thiscall CDialog::OnOK(void)” (?OnOK@CDialog@@MAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “protected: virtual void __thiscall CDialog::OnCancel(void)” (?OnCancel@CDialog@@MAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: “public: virtual int __thiscall CDialog::CheckAutoCenter(void)” (?CheckAutoCenter@CDialog@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual void __thiscall CDialog::AssertValid(void)const " (?AssertValid@CDialog@@UBEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual void __thiscall CDialog::Dump(class CDumpContext &)const " (?Dump@CDialog@@UBEXAAVCDumpContext@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(dlgcore.obj) : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CDialog::GetRuntimeClass(void)const " (?GetRuntimeClass@CDialog@@UBEPAUCRuntimeClass@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual int __thiscall CCmdTarget::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *)” (?OnCmdMsg@CCmdTarget@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual int __thiscall CCmdTarget::IsInvokeAllowed(long)” (?IsInvokeAllowed@CCmdTarget@@UAEHJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual int __thiscall CCmdTarget::GetDispatchIID(struct _GUID *)” (?GetDispatchIID@CCmdTarget@@UAEHPAU_GUID@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual unsigned int __thiscall CCmdTarget::GetTypeInfoCount(void)” (?GetTypeInfoCount@CCmdTarget@@UAEIXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual class CTypeLibCache * __thiscall CCmdTarget::GetTypeLibCache(void)” (?GetTypeLibCache@CCmdTarget@@UAEPAVCTypeLibCache@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual long __thiscall CCmdTarget::GetTypeLib(unsigned long,struct ITypeLib * *)” (?GetTypeLib@CCmdTarget@@UAEJKPAPAUITypeLib@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_DISPMAP const * __thiscall CCmdTarget::GetDispatchMap(void)const " (?GetDispatchMap@CCmdTarget@@MBEPBUAFX_DISPMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_EVENTSINKMAP const * __thiscall CCmdTarget::GetEventSinkMap(void)const " (?GetEventSinkMap@CCmdTarget@@MBEPBUAFX_EVENTSINKMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_INTERFACEMAP const * __thiscall CCmdTarget::GetInterfaceMap(void)const " (?GetInterfaceMap@CCmdTarget@@MBEPBUAFX_INTERFACEMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual void __thiscall CCmdTarget::OnFinalRelease(void)” (?OnFinalRelease@CCmdTarget@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual int __thiscall CCmdTarget::OnCreateAggregates(void)” (?OnCreateAggregates@CCmdTarget@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “public: virtual struct IUnknown * __thiscall CCmdTarget::GetInterfaceHook(void const *)” (?GetInterfaceHook@CCmdTarget@@UAEPAUIUnknown@@PBX@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_CONNECTIONMAP const * __thiscall CCmdTarget::GetConnectionMap(void)const " (?GetConnectionMap@CCmdTarget@@MBEPBUAFX_CONNECTIONMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “protected: virtual struct IConnectionPoint * __thiscall CCmdTarget::GetConnectionHook(struct _GUID const &)” (?GetConnectionHook@CCmdTarget@@MAEPAUIConnectionPoint@@ABU_GUID@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: “protected: virtual int __thiscall CCmdTarget::GetExtraConnectionPoints(class CPtrArray *)” (?GetExtraConnectionPoints@CCmdTarget@@MAEHPAVCPtrArray@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(cmdtarg.obj) : error LNK2005: "protected: virtual struct AFX_OLECMDMAP const * __thiscall CCmdTarget::GetCommandMap(void)const " (?GetCommandMap@CCmdTarget@@MBEPBUAFX_OLECMDMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(winocc.obj) : error LNK2005: “public: virtual int __thiscall CWnd::OnAmbientProperty(class COleControlSite *,long,struct tagVARIANT *)” (?OnAmbientProperty@CWnd@@UAEHPAVCOleControlSite@@JPAUtagVARIANT@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “protected: static struct AFX_MSGMAP const * __stdcall CWinApp::GetThisMessageMap(void)” (?GetThisMessageMap@CWinApp@@KGPBUAFX_MSGMAP@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::LoadSysPolicies(void)” (?LoadSysPolicies@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::InitApplication(void)” (?InitApplication@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual int thiscall CWinApp::InitInstance(void)" (?InitInstance@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual struct HINSTANCE * thiscall CWinApp::LoadAppLangResourceDLL(void)" (?LoadAppLangResourceDLL@CWinApp@@UAEPAUHINSTANCE@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual __thiscall CWinApp::~CWinApp(void)” (??1CWinApp@@UAE@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::ExitInstance(void)” (?ExitInstance@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::Run(void)” (?Run@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual void __thiscall CWinApp::WinHelpInternal(unsigned long,unsigned int)” (?WinHelpInternal@CWinApp@@UAEXKI@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual long __thiscall CWinApp::ProcessWndProcException(class CException *,struct tagMSG const *)” (?ProcessWndProcException@CWinApp@@UAEJPAVCException@@PBUtagMSG@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::OnIdle(long)” (?OnIdle@CWinApp@@UAEHJ@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::AssertValid(void)const " (?AssertValid@CWinApp@@UBEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual void __thiscall CWinApp::Dump(class CDumpContext &)const " (?Dump@CWinApp@@UBEXAAVCDumpContext@@@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appcore.obj) : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CWinApp::GetRuntimeClass(void)const " (?GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appui2.obj) : error LNK2005: “public: virtual void __thiscall CWinApp::InitLibId(void)” (?InitLibId@CWinApp@@UAEXXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appui2.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::Register(void)” (?Register@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appui2.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::Unregister(void)” (?Unregister@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appui.obj) : error LNK2005: “public: virtual void __thiscall CWinApp::DoWaitCursor(int)” (?DoWaitCursor@CWinApp@@UAEXH@Z) already defined in mfc90ud.lib(mfc90ud.dll)
1>nafxcwd.lib(appui.obj) : error LNK2005: “public: virtual int __thiscall CWinApp::SaveAllModified(void)” (?SaveAllModified@CWinApp@@UAEHXZ) already defined in mfc90ud.lib(mfc90ud.dll)
1>libcmtd.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(setlocal.obj) : error LNK2005: __configthreadlocale already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
1>libcmtd.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
1>libcmtd.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
1>libcmtd.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
1>libcmtd.lib(hooks.obj) : error LNK2005: “void __cdecl terminate(void)” (?terminate@@YAXXZ) already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(dbgrptw.obj) : error LNK2005: __CrtDbgReportW already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(errmode.obj) : error LNK2005: ___set_app_type already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(mlock.obj) : error LNK2005: __lock already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(mlock.obj) : error LNK2005: __unlock already defined in msvcrtd.lib(MSVCR90D.dll)
1>libcmtd.lib(_file.obj) : error LNK2005: ___iob_func already defined in msvcrtd.lib(MSVCR90D.dll)
1>LINK : warning LNK4098: defaultlib ‘msvcrtd.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib ‘nafxcwd.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : warning LNK4098: defaultlib ‘libcmtd.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>D:\My Documents\Visual Studio 2008\Projects\CUDAEXAM\Debug\CUDAEXAM.exe : fatal error LNK1120: 1 unresolved externals
MFC的运行库和C++和C的运行库冲突了,去掉一个就可以了
请问怎么去掉啊????
VC里面的排除lib linker那个地方,properties 里面找
不好意思,实在没找到,请勇哥具体说下,还有怎么去掉
去掉哪一个?
每次去掉一个试试!
项目属性->常规->MFC的使用 改成使用标准windows库
项目->C+±>代码生成->运行时库改成 多线程调试/MTd
项目->CUDA build rule ->hybrid CUDA/C++ option->Runtime library 改成Multi-threaded /MT
勇哥辛苦了,很久不出现……一来就看这么长的东西……
不知道楼主有没有解决这个问题了,我也碰到了相似的问题请教楼主是怎么解决的