C++ "multiple types in one declaration" error

c++

Solution

You probably have code that's the equivalent of

int float x;

probably

class Foo { } float x;

or in it's more common form (note the missing semicolon after closing curly bracket)

class Foo {
  //
}

float x;

Problem

Why do I get the `"multiple types in one declaration"` error when I compile my C++ program?

Original source