The void type is used in a declaration with another type. Ex:
int main() {
void int i; // C2120
}
Possible resolution:
int main() {
int i;
}
Give more details or a better code example if needed.
This article is a derivative work based on Compiler Error C2120 which is provided by MSDN Community Content - Visual C++.