当前位置: 代码迷 >> C语言 >> 编译连接错误,请大家帮忙看一下
  详细解决方案

编译连接错误,请大家帮忙看一下

热度:162   发布时间:2008-03-25 12:47:21.0
编译连接错误,请大家帮忙看一下
错误如下:
inking...
LINK : fatal error LNK1117: syntax error in option "subsystem:windows/incremental:yes"
Error executing link.exe.

Chat.exe - 1 error(s), 0 warning(s)
弹出这个错误,不知原因在哪里,请大家帮忙解决,谢谢
搜索更多相关的解决方案: 编译  

----------------解决方案--------------------------------------------------------
可不可以看下代码?
----------------解决方案--------------------------------------------------------
代码如下:
#include "stdafx.h"
#include "Chat.h"
#include "ChatDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

BEGIN_MESSAGE_MAP(CChatApp, CWinApp)
    //{{AFX_MSG_MAP(CChatApp)
            //}}AFX_MSG
    ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

CChatApp::CChatApp()
{
    // TODO: add construction code here,
    // Place all significant initialization in InitInstance
}



// The one and only CChatApp object

CChatApp theApp;

// CChatApp initialization

BOOL CChatApp::InitInstance()
{
    if(!AfxSocketInit())
    {
        AfxMessageBox("加载套接字库失败!");
        return FALSE;
    }
    AfxEnableControlContainer();

    
#ifdef _AFXDLL
    Enable3dControls();            // Call this when using MFC in a shared DLL
#else
    Enable3dControlsStatic();    // Call this when linking to MFC statically
#endif

    CChatDlg dlg;
    m_pMainWnd = &dlg;
    int nResponse = dlg.DoModal();
    if (nResponse == IDOK)
    {
        // TODO: Place code here to handle when the dialog is
        //  dismissed with OK
    }
    else if (nResponse == IDCANCEL)
    {
        // TODO: Place code here to handle when the dialog is
        //  dismissed with Cancel
    }

        return FALSE;
}
----------------解决方案--------------------------------------------------------
  相关解决方案