ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
23 stars 5 forks source link

the idea of convert µVision project with C++ files #38

Closed WhiteNightyu closed 11 months ago

WhiteNightyu commented 11 months ago

If the µVision project file contains C++ files, the conversion of the µVision project will fail. The reason for this is that in the generated *.csolution.yaml file, the misc: section has -C-CPP, which combines the compiler configurations for both C and C++ together. However, the presence of - std=c99 within it makes it unable to support C++. To resolve this issue, you can split the - C-CPP in the misc: section into -C and -CPP. Additionally, within the -CPP section, include -std=c++11 to ensure proper support for CPP