fix: 修复 Types.h 缺少头文件保护导致的重复定义错误

- Types.h: 添加 #pragma once 防止重复包含
- CMakeLists.txt: C++ 标准 17 → 20
- App/CMakeLists.txt: 移除重复的 C++11 覆盖,统一继承根 CMake 标准
- Axis.cpp: 添加 #include <string> 显式包含
This commit is contained in:
chen
2026-07-03 03:52:40 +00:00
parent d9813ea8fe
commit 818041201b
8 changed files with 96 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Linux",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
},
{
}
],
"version": 4
}
+6
View File
@@ -0,0 +1,6 @@
{
"clangd.arguments": ["--compile-commands-dir=build"],
}