I'm following a lesson on C++ on Udemy and seem to have fallen at the first hurdle for creating the program.
I've added all of the SDL Header files and included SDL.H as the lessons indicate.
I've done nothing with the DLL files which where provided in the SDL Default download.
My code is as follows:
#define SDL_MAIN_HANDLED
#include <iostream>
#include <SDL.h>
using namespace std;
int main() {
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
cout << "SDL init failed" << endl;
return 1;
}
cout << "SDL Init succeeded" << endl;
SDL_Quit();
return 0;
}
However, I get the following errors upon compiling:
Error LNK2019 unresolved external symbol _SDL_Init referenced in function _main ParticleProjectNEW ParticleProgram\ParticleProjectNEW\Source.obj 1
Error LNK2019 unresolved external symbol _SDL_Quit referenced in function _main ParticleProjectNEW \ParticleProgram\ParticleProjectNEW\Source.obj 1