Compiles on one PC but not another. "WiFi.cpp" is different between pcs, how do I set the .ini so that the right platform version is used?

Hi, I pushed a compiling project up to github and pulled it to my other machine but the other machine was getting the following error.

.pio\build\custom_table\libb10\libRent2Grow_lib.a(gs_wifi.cpp.o):(.literal._Z8listWiFiv+0xc): undefined reference to WiFi’
.pio\build\custom_table\lib776\libWiFi.a(WiFiAP.cpp.o):(.literal._ZN11WiFiAPClass6softAPEPKcS1_iii+0x4): undefined reference to WiFi’`

I’ve managed to find that the WiFi.cpp files found within ‘.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src’ to be different. When I compile both computers have the following output.

CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (3.5.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: - framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0) - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ deep, Compatibility ~ soft
Found 37 compatible libraries Scanning dependencies…`

I’ve found that the arduino esp32 library has new features in later versions and would like to make sure that im using the latest version but platform io is confused when it says that both compilers are compiling with framework-arduinoespressif32 (1.0.6)

How can I reinstall / validate / ensure that a specific platform is being used for compilation?

Cheers.

Managed to check the wifi.cpp on git and found that the non-compiling machine was not correct.

Solution was to;

  1. Delete old framework folder

  2. rebuild

  3. let pio redownload and finish compiling