why do I get "multiple types in one declaration" error when compiling c++ program?
A:
My guess is you're missing a closing brace somewhere in a class definition, or a semicolon after it.
Grumdrig
2009-11-18 02:18:29
+7
A:
You probably have code that's the equivalent of
int float x;
probably
class Foo { } float x;
or in it's more common form
class Foo {
//
}
float x;
MSalters
2009-11-18 09:24:55
A:
I had the same problem. Sometimes the error line does not show the correct place. Go through all new-created/modified classes and see if you forget ";" in the end of class defifnition.
Narek
2010-09-02 08:44:27