Menu

Cannot import Visual Studio project

MySource
2025-04-26
2025-04-26
  • MySource

    MySource - 2025-04-26

    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
  • Oliver Stöneberg

    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.

     
    • MySource

      MySource - 2025-04-26

      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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.