Problem with SDL

So i'm trying to build this code

#include <iostream>
#include <SDL\SDL.h>

int main()
{


if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
std::cout << "SDL init failed" << std::endl;
return 1;
}

std::cout << "SDL init succeeded" << std::endl;

SDL_Quit();

return 0;
}

It gives me bunch of LNK erorrs which i barely understand
http://prntscr.com/81cuqw

I have included the directories and the libaries should be included too i guess.

I would love to make something in SDL without these problems

PS : I'm using visual studio

Edit - I tried only including SDL2.lib and SDL2main.lib trough Linker->Input->Additional Dependencies and i get a LNK1104 error : LINK cannot open file SDL2.lib
Previous errors are produced if i put the libraries inside my project folder
I've tried another way and now i can get an LNK1561 error : entry point must be defined
Last edited on
Where are your .lib files located? Make sure they are located where Visual Studio looks for them (I'm not sure where that is).
Topic archived. No new replies allowed.