我有这个 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