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

conversion of the µVision project what contains C++ files will failed #37

Closed WhiteNightyu closed 1 year ago

WhiteNightyu commented 1 year 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

Type: Bug Report

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Code sample and logs

Screenshots

Additional context