Compilation Error if using Polyspace Bug Finder with Visual Studio Clang++

조회 수: 1 (최근 30일)
Viktoria
Viktoria 2023년 6월 14일
편집: Anirban 2023년 6월 28일
Hi,
I am currently trying to use Polyspace Bug Finder with the Windows Clang++ compiler installed with Visual Studio 2019.
Unfortunately, I get a lot of compilation errors with a simple 'Hello World' program such as:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\vadefs.h, line 61: error: expected a ";"
| typedef unsigned __int64 uintptr_t;
| ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h, line 175: error: "__cdecl" has already been declared in the current scope
| void __cdecl _fperrraise( int _Except);
| ^
I created the project using "polyspace-configure" given a "compilation_database.json", so all include directories should be set correctly.
Used Versions:
  • Polyspace: R2022b
  • Windows Clang 12.0 (Visual Studio 2019)
Settings:
  • Project language: Cpp
  • Target: x86_64

답변 (1개)

Anirban
Anirban 2023년 6월 27일
편집: Anirban 2023년 6월 28일
clang-cl might not be supported with polyspace-configure but please contact MathWorks Technical Support for more help with the issue. To diagnose this further, Support will have to determine which settings come from polyspace-configure and which ones have been set later, etc. In this case, the error message is not enough to state what is going on.

카테고리

Help CenterFile Exchange에서 Troubleshooting in Polyspace Products for Ada에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by