I am attempting to use cppcheck 2.17.1 on Windows 11. When I start cppcheckgui.exe,and now, following the manual, I want to import my C++ project for checking.
The manual says "In the project settings dialog, the first option you see is “Import project”. It is recommended that you use this feature if you can. Cppcheck can import:
• Visual studio solution / project...".
I don't see a "Project settings" dialog, or any menu item to import a Visual Studio solution.
If instead I choose a single C++ source file under Analyze/Files..., I get "There was a critical error with id 'syntaxError', when checking [path to MyFile.cpp]. Analysis was aborted.
How can I use cppcheck under Windows 11?
Visual Studio 17.3.6 (the current version)
Last edit: MySource 2025-04-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you-this worked. But I am now getting errors
"There was a critical error with id 'unknownMacro', when checking [filename.cpp], Analysis was aborted".
I can only see the last of these, and the file named is not in the list below.
Also, after the final error, cppcheck went into an infinite loop and could only be stopped by killing the process with Task Manager.
Last edit: MySource 2025-04-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am attempting to use cppcheck 2.17.1 on Windows 11. When I start
cppcheckgui.exe
,and now, following the manual, I want to import my C++ project for checking.The manual says "In the project settings dialog, the first option you see is “Import project”. It is recommended that you use this feature if you can. Cppcheck can import:
• Visual studio solution / project...".
I don't see a "Project settings" dialog, or any menu item to import a Visual Studio solution.
If instead I choose a single C++ source file under Analyze/Files..., I get "There was a critical error with id 'syntaxError', when checking [path to MyFile.cpp]. Analysis was aborted.
How can I use cppcheck under Windows 11?
Visual Studio 17.3.6 (the current version)
Last edit: MySource 2025-04-26
Open
File -> New Project File
and after choosing a file name it will offer you a dialog where you can select the project to import.Thank you-this worked. But I am now getting errors
"There was a critical error with id 'unknownMacro', when checking [filename.cpp], Analysis was aborted".
I can only see the last of these, and the file named is not in the list below.
Also, after the final error, cppcheck went into an infinite loop and could only be stopped by killing the process with Task Manager.
Last edit: MySource 2025-04-26