I think you want
#define SDL_MAIN_HANDLED
in your main file, BEFORE the line
#include <SDL2/SDL.h>
More Related Contents:
- C equivalent of C++'s double colons?
- SDL and C++ Class…how to separate this code?
- How do I use SDL2 in my programs correctly?
- Why SDL defines main macro?
- libpng warning: iCCP: known incorrect sRGB profile
- OpenGL Scale Single Pixel Line
- How to use SDL2 and SDL_image with cmake
- Why does valgrind say basic SDL program is leaking memory?
- SDL2: Fast Pixel Manipulation
- Problems using member function as custom deleter with std::shared_ptr
- What does the following return type actually mean
- How to create an instance of a class given this definition
- Running my C++ code gives me a blank console
- Thread pooling in C++11
- How can I read and manipulate CSV file data in C++? [duplicate]
- Deep copy vs Shallow Copy [duplicate]
- More elegant way to check for duplicates in C++ array?
- undefined reference to `__gxx_personality_sj0`
- how to find a search term in source code
- What’s the use of the private copy constructor in c++
- Does new[] call default constructor in C++?
- How can I use valgrind with Python C++ extensions?
- popen simultaneous read and write [duplicate]
- std::map default value for build-in type
- Write a recursive function that reverses the input string
- Should I include every header?
- In C++ Inheritance, Derived class destructor not called when pointer object to base class is pointed to derived class
- C++ virtual override functions with same name
- The output of cout
- How to overload operator==() for a pointer to the class?