Skip to content

bug: Fix build in linux using gcc-arm-none-eabi#201

Open
Neko-vecter wants to merge 2 commits intopeng-zhihui:mainfrom
Neko-vecter:main
Open

bug: Fix build in linux using gcc-arm-none-eabi#201
Neko-vecter wants to merge 2 commits intopeng-zhihui:mainfrom
Neko-vecter:main

Conversation

@Neko-vecter
Copy link

@Neko-vecter Neko-vecter commented Mar 22, 2025

intro

This is a bug fix when build the 2.Firmware/Core-STM32F4-fw in linux using gcc-arm-none-eabi.

build log

Dummy-Robot/2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/protocol.cpp:9:1: note: 'snprintf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?

Dummy-Robot/2.Firmware/Core-STM32F4-fw/Robot/instances/dummy_robot.h:5:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?

Dummy-Robot/2.Firmware/Core-STM32F4-fw/Bsp/imu/MPU6050.cpp:37:10: fatal error: mpu6050.hpp: No such file or directory
   37 | #include "mpu6050.hpp"

code change

include <cstdio> in protocol.hpp
include <string> in dummy_robot.h
change #include "mpu6050.hpp" to include "MPU6050.hpp" in MPU6050.cpp

-Neko.vecter

@Neko-vecter Neko-vecter changed the title bug: Fix build in linux using gcc-arm-embedded bug: Fix build in linux using gcc-arm-none-eabi Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant