Same code compile on arduino ide, atom/platformio but not on VS Code.

As title.

I have the sketch I attached.
Same code compile on arduino ide, atom/platformio but not on VS Code.

VS code complain about most of the function I have
src\smartoled_code.cpp:509:81: error: ‘drawCenterScreenLogo’ was not declared in this scope

why should I declare function on VS Code if I don’t need to do it on Arduino IDE or Atom?

sma.cpp (37.3 KB)

Maybe it’s best to seek help on the VS forum.

Does not VS scan everything to see if it’s in order, only to compile?

It seems that VS performs a different and much faster compilation than the Arduino IDE, so there must be several differences.

https://www.visualmicro.com/forums/

Check that you have all the same libraries installed in both environments.

All 3 of you need to lookup how the Arduino IDE works!

C/C++ like the vast majority of programing languages requires that functions etc are declared BEFORE use.

Mark

holmes4:
All 3 of you need to lookup how the Arduino IDE works!

C/C++ like the vast majority of programing languages requires that functions etc are declared BEFORE use.

Mark

yes VS want functions declaration before their use.
ok I will adapt my code.