我遇到过这问题,这样搞定的
今天遇到个编译错误:..vc98include ew(35) : error C2061: syntax error : identifier 'THIS_FILE',我的某个.cpp中是这样写的:
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "myUtil.h"
百度了下说是#include顺序问题,要放到'THIS_FILE'定义之前,改成如下即可:
#include "stdafx.h"
#include "myUtil.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif