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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -