c++ - "Declaration does not declare anything" and "expected unqualified-id" -


compiling code in visual studio totally fine.

bool check(void);  bool check(void) { return true; } 

but in xcode(apple llvm) warning on declaration

declaration not declare 

and error on definition

parse error: expected unqualified-id 

what going on here? how can fix this?

iirc on mac there exists macro "check" interfere function name. try mycheck.


Comments

Popular posts from this blog

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -