Hello everyone.
Im new to SDL and i would love to try it.
I followed a Tutorial on installing it however I am experiencing some problems.
Im using Visual Studo 2017 on Windows 10.
I linked the “include” and the “lib\x86” directory and added the 2 librarys “SDL.lib” and “SLDmain.lib” to the environment.
My current code looks like this:
#include<iostream>
#include<sdl.h>
int main(int argc, char *argv[])
{
if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
{
std::cout << "SDL Error: " << SDL_GetError() << std::endl;
}
return EXIT_SUCCESS;
}
Now Visual Studio returns some errors: (I will translate them to english, because I use the IDE in my native language)
SDLmain.lib(SDL_win32_main.obj) reference to unresolved external symbol “_imp_fprintf” in function “_ShowError”
and
SDLmain.lib(SDL_win32_main.obj) reference to unresolved external symbol “_imp___iob_func” in function “_ShowError”
To you know about this error and know what I did wrong/forgot to do ?
Thank you for your help