Can't compile simple project

this is with a fresh install of platformio. simple arduino/uno project, single file blink.cpp:

    #include <Arduino.h>
    #include <utility/Adafruit_GFX.h>


Library Dependency Graph
|-- <Robot Control> v1.0.2
Compiling .pioenvs/uno/src/Blink.o
Compiling .pioenvs/uno/lib/Robot_Control/ArduinoRobot.o
Compiling .pioenvs/uno/lib/Robot_Control/Arduino_LCD.o
/home/piersh/.platformio/packages/framework-arduinoavr/libraries/Robot_Control/src/ArduinoRobot.cpp:3:18: fatal error: Wire.h: No such file or dir

it looks like the include direectories aren’t getting set up correctly.

Sorry, never worked with GFX libraries, tried to compile graphicstest.pde which worked fine.
Can you provide a simple example?

That’s it, just those two lines above in a .cpp file.

Arduino needs a setup an loop function.

sure, add those. it doesn’t help. the error still persists. did you actually try to build it?

Sorry, I don’t understand what you trying to do.
Are you familiar with c-programming?