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

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -