Running Port Legacy C App can't find stdio.h

On the tutorial to compile C directly on legato it says to do this

$WP85_TOOLCHAIN_DIR/arm-poky-linux-gnueabi-gcc -o legacyProgram main.c

yet when I run the toolchain like below or using WP77XX_TOOLCHAIN_DIR i get this error. How do I get the toolchain to find standard header files?? it works using mkapp

main.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>

/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc main.c -o legacyProgram

Thank you

Try sourcing the environment-setup-armv7a-neon-poky-linux-gnueabi in your toolchain directory.

Then you can compile with $CC -o legacyProgram main.c

Sorry do you mean do this? because it gave me no output
export CC=/opt/swi/y22-ext-SWI9X07Y_02.18.06.00/environment-setup-armv7a-neon-poky-linux-gnueabi

$CC -o legacyProgram main.c

root@mangoh-vm:~/workspace/projects/test# $CC -o legacyProgram main.c

I mean run:

source environment-setup-armv7a-neon-poky-linux-gnueabi
$CC -o legacyProgram main.c

Thank you I can execute it now