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 - Unusual behaviour when drawing lots of images onto a large canvas -

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

javascript - Chart.js - setting tooltip z-index -