Simple Directmedia Layer and C++


Hi ! I'm new to software programming and C/C++ Game Development. I'm interesting in writing games with C/C++, but have discovered that I didn't have the framework to implement graphics in my code. I added the [ SDL2.framework ] file to to my /Library/Frameworks folder in my OS X El Capitan. Is this sufficient enough to begin creating graphics in my game codes; etc ? Thank you !!!

Screen Shot 2015-12-04 at 11.42.58 PM.png
1 comment

Hi Frederick.

CLion uses a concept of a project and relies on CMake as a build system for it. All the includes paths, variables and more is taken from CMake files and are used by CLion to understand your project better and to resolve your code correctly. It means that you need to configure your CMakeLists.txt for using SDL2. Please see this conversation. Also this article may help:


Please sign in to leave a comment.