Unable to locate inttypes.h and stdlib.h when building simple code

Having created a project for my arduino uno and tried to build the simple blink_led program. But the compiler does not seem to be able to find the inttypes.h and stdlib.h standard headerfiles even though i have VS2015 installed. Is there any way point paltformio to the header files as i know where they are located…

Could you provide a simple project to reproduce this issue?

I have just used the blink example only including arduino.h

Something is wrong with platform packages. Try to remove C:\Users\xxxx.platformio folder

oh it might be because i have set the HOME environment variable to my dropbox such that platformio places the .platformio folder there instead of the user folder

It should not be a problem. What do you see with

pio platform list

Not OP, but I’m having this exact issue.

when I type pio platform list, I get:

atmelavr ~ Atmel AVR
Atmel AVR 8- and 32-bit MCUs deliver a unique combination of performance, power efficiency and
 design flexibility. Optimized to speed time to market-and easily adapt to new ones-they are b
ased on the industrys most code-efficient architecture for C and assembly programming.

Home: http://platformio.org/platforms/atmelavr
Frameworks: arduino, simba

Packages: toolchain-atmelavr, framework-arduinoavr, framework-simba, tool-avrdude, tool-micron
Version: 1.10.0