Problem with conditional #include

aarondc:
I have been wondering how hard it would be to turn OFF the IDE "help" that happens, like creating prototypes, etc. A single option checkbox we could uncheck that would allow conditional #includes to work, mostly.

If you make your own .cpp and .h files as part of the project, those files do not seem to be subjected to the IDE "help". For example, this file, which deliberately omits the function prototype:

void test ()
  {
  bar ();
  }
  
void bar ()
  {
  }

... gives me a compile error:

foo.cpp: In function 'void test()':
foo.cpp:3: error: 'bar' was not declared in this scope