raylib-cpp | C++ Object Oriented Wrapper for raylib | Graphics library
kandi X-RAY | raylib-cpp Summary
kandi X-RAY | raylib-cpp Summary
C++ Object Oriented Wrapper for raylib
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of raylib-cpp
raylib-cpp Key Features
raylib-cpp Examples and Code Snippets
Community Discussions
Trending Discussions on raylib-cpp
QUESTION
I have installed raylib and ran the example .c files with success in VSCode and Notepad++.
I'm trying to execute the files from this repo raylib-cpp/projects/CMake
I haven't changed the files from the repo and ran the cmake command directly from VSCoode.
main.cpp
ANSWER
Answered 2020-Sep-07 at 06:56I can see that there's an issue reported already https://github.com/RobLoach/raylib-cpp/issues/51. I guess that author's default C++ compiler's standard is set to 17, thus there are no issues on his machine. You are one step behind, however. Inline variables, as your compiler suggests, are available since C++17. It appears that you are using some older standard (not sure which, though). Not sure which is the default one for visual studio's cpp compiler.
You can set C++ standard for your project via CMake like that:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install raylib-cpp
Set up a raylib project using the build and install instructions
Ensure C++ files are compiled with C++
Download raylib-cpp
Include include/raylib-cpp.hpp #include "path/to/raylib-cpp.hpp"
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page