this:
#include <iostream>
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
int main(int argc, char ** argv)
{
if (SDL_INIT( SDL_INIT_EVERYTHING ) < 0 )
{
std::cout << " error starting SDL " <<SDL_GetError( ) << std::endl;
}
return EXIT_SUCCESS;
}
возвращает:
||=== Build: Debug in test (compiler: GNU GCC Compiler) ===|
C:\Development\Projects\test\main.cpp||In function 'int main(int, char**)':|
C:\Development\Projects\test\main.cpp|7|error: 'SDL_INIT' was not declared in this scope|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
увидел это: неопределенная ссылка на SDL_Init и изменил мою версию SDL2 на 32-битную, ошибка все еще подходит. Очень новичок в этом, поэтому извиняюсь, если это глупый вопрос.