Menu

#277 QP/C++6.8.2 game-gui and dpp-gui examples fail to compile with Visual Studio

QPCPP
closed
None
1
2024-08-01
2020-08-06
No

The following QP/C++ 6.8.2 example projects for Visual Studio:

  • qpcpp\examples\arm-cm\game_efm32-slstk3401a\win32-gui\game-gui.sln and
  • qpcpp\examples\arm-cm\dpp_efm32-slstk3401a\win32-gui\dpp-gui.sln

fail to comile with the following error:

bsp.cpp: error C3861: 'SNPRINTF_S': indentifier not found

--MMS

Discussion

  • Quantum Leaps

    Quantum Leaps - 2020-08-06

    The reason for the bug is the missing include file #include "safe_std.h" in bsp.cpp in both projects. The include safe_std.h file has been introduced in QP/C/C++ 6.8.2 to provide "portable safe <stdio.h> and <string.h> facilities"</string.h></stdio.h>, such as SNPRINTF_S() for desktop operating systems (Windows, Linux, MacOS). This include file should be used instead of the standard library incluedes <stdio.h> and <string.h>.</string.h></stdio.h>

    The bsp.cpp files in the game-gui and dpp-gui projects have not been updated and therefore they fail compilation.

    The issue has already been fixed in the git repos on GitHub and SourceForge. The fix will be included in the next upcoming official release of QP/C/C++ (and QP-bundle).

    --MMS

     
  • Quantum Leaps

    Quantum Leaps - 2020-09-03
    • status: accepted --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2020-09-03

    Fixed in QP/C++ 6.9.0.
    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel