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
Type: Bug Report
Describe the bug
OS and Version:
VS Code Version:
Extension Version:
Target Device:
Other extensions you installed (and if the issue persists after disabling them):
A clear and concise description of what the bug is.
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, themisc:
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 themisc:
section into-C
and-CPP
. Additionally, within the-CPP
section, include-std=c++11
to ensure proper support for CPPType: Bug Report
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior
Code sample and logs
tasks.json
Screenshots
Additional context