QP/C++6.8.2 game-gui and dpp-gui examples fail to compile with Visual Studio
Real-Time Embedded Frameworks based on active objects & state machines
Brought to you by:
quantum-leaps
The following QP/C++ 6.8.2 example projects for Visual Studio:
qpcpp\examples\arm-cm\game_efm32-slstk3401a\win32-gui\game-gui.sln
andqpcpp\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
Anonymous
The reason for the bug is the missing include file
#include "safe_std.h"
inbsp.cpp
in both projects. The includesafe_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 asSNPRINTF_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
Fixed in QP/C++ 6.9.0.
--MMS