When I try to compile this code:
#include <windows.h>
namespace cmb1 {
}
void main() {}
I get this:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
a.cc
a.cc(3) : error C2059: syntax error : 'constant'
a.cc(3) : error C2143: syntax error : missing ';' before '{'
a.cc(3) : error C2447: '{' : missing function header (old-style formal list?)
Ditto for cmb2, cmb3 and cmb4. I stopped at that point. cm4, btw, compiles just fine.
I tried surrounding the namespace with something else:
namespace dilum {
namespace cmb4 {
}
}
But the compile still failed.
What is going on?
from windows.h: