I use VSCode, not the Arduino IDE. I saw and tried to use a lot of code snippets which are provided for Arduino projects...
So when I copy/paste these examples into my VSCode and try to compile it fails. (I won't believe that people offer non-working examples.)
When I place the functions above the function calls it compiles.
Is this normal behavior or do I have to add some settings to get this working as provided?
Fails:
myfunction(); void myfunction(){ return 0; } Works:
void myfunction(){ return 0; } myfunction();