Wire.h compilation terminated

Hi all i am.new with platformio i am trying to uploud a temperature program to my esp32s3 and give me this

i tried to add
Liubrary chain+
But ut gives me the same result
Please any help

Wire.h is a built-in library in the Espressif Arduino framework.
Therefore this error should not happen.

Please show the content of your platformio.ini and post the complete error message.

i think i didint download Espressif arduino when i start using platformio

Does it work without errors now?

All necessary platform and package files are automatically downloaded by PlatformIO.

Now it is still not working

When I test

platform = espressif32
board = nodemcu-32s
framework = arduino
lib_deps =
   sparkfun/SparkFun MAX3010x Pulse and Proximity Sensor Library@^1.1.2

with the code from the example as src/main.cpp it works perfectly.

You don’t seem to be using lib_deps to manage libraries, but global libraries? I would not recommend to do that, PlatformIO can easily get mixed up with things.

I would suggest

  1. Remove all folders in C:\Users\<user>\.platformio\lib
  2. Remove C:\Users\<user>\.platformio\platforms\espressif32 (this will trigger a clean reinstall of the latest ESP32 platform)
  3. Use above platformio.ini and code to test

Thank you it is work perfectly but its still a proplem with my max30102 it is didn’t flash red and gevs me this on serila i but serila on 9600 in poth platformio.ino and in main cpp

You’re changing the Serial baud rate 9600 in your main.cpp code, when the bootloader and terminal seems to be setup for 115200 baud. Just change 9600 to 115200 in your code and reupload.