Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ "multiple types in one declaration" error

Tags:

c++

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

like image 354
Mark Copeland Avatar asked Nov 18 '09 02:11

Mark Copeland


1 Answers

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; 
like image 50
MSalters Avatar answered Sep 20 '22 14:09

MSalters