Someone can help me please compilation error

    Processing uno (platform: atmelavr; framework: arduino; board: uno)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Atmel AVR (3.3.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
 - framework-arduino-avr 5.1.0
 - tool-avrdude 1.60300.200527 (6.3.0)
 - toolchain-atmelavr 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SoftwareSerial> 1.0
Building in release mode
Compiling .pio\build\uno\src\main.cpp.o
Compiling .pio\build\uno\liba9f\SoftwareSerial\SoftwareSerial.cpp.o
Archiving .pio\build\uno\libFrameworkArduinoVariant.a
Compiling .pio\build\uno\FrameworkArduino\CDC.cpp.o
In file included from src\main.cpp:4:0:
include/./SoftwareServo.h:4:10: fatal error: WProgram.h: No such file or directory

* Looking for WProgram.h dependency? Check our library registry!
* CLI  > platformio lib search "header:WProgram.h"

 #include <WProgram.h>
compilation terminated.
*** [.pio\build\uno\src\main.cpp.o] Error 1
1 Like

Wprogram.h is only used in very very old (pre v1.00 I think) versions of the Arduino IDE. More recend versions use Arduino.h instead.

I rather suspect that SoftwareServo.h is not compatible. Try using Servo.h instead as that’s usable in the Arduino framework.