【发布时间】:2012-12-26 21:28:27
【问题描述】:
我有这个 c++ 程序,但由于某种原因它无法编译。我正在将 XP 与 VS 2005 一起使用。
#include "stdafx.h"
#include "MainThread.h"
HANDLE hStopEvent = NULL;
int main(int argc, char *argv[])
{
return 0;
}
error C2146: syntax error : missing ';' before identifier 'hStopEvent'
error C2377: 'HANDLE' : redefinition; typedef cannot be overloaded with any other symbol
see declaration of 'HANDLE'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
【问题讨论】:
-
问题出在你的标题中。
标签: c++ visual-studio-2005 windows-xp