Im getting LNK2019 errors using SDL 2.0.1 in visual studio 2013

Here are the error codes and [Here](http://pastebin.com/UjQP5bTA) Is the link to all the code:

Error 5 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup C:\Users\XSoloDoloX\Desktop\VecEng\GameForReal\GameForReal\MSVCRTD.lib(crtexew.obj) GameForReal

Error 2 error LNK2019: unresolved external symbol _SDL_Quit referenced in function "public: void __thiscall VectorEngine::OnCLeanup(void)" (?OnCLeanup@VectorEngine@@QAEXXZ) C:\Users\XSoloDoloX\Desktop\VecEng\GameForReal\GameForReal\OnCleanup.obj GameForReal

Error 4 error LNK2019: unresolved external symbol _SDL_Init referenced in function "public: bool __thiscall VectorEngine::OnInit(void)" (?OnInit@VectorEngine@@QAE_NXZ) C:\Users\XSoloDoloX\Desktop\VecEng\GameForReal\GameForReal\OnInit.obj GameForReal

Error 3 error LNK2019: unresolved external symbol _SDL_CreateWindow referenced in function "public: bool __thiscall VectorEngine::OnInit(void)" (?OnInit@VectorEngine@@QAE_NXZ) C:\Users\XSoloDoloX\Desktop\VecEng\GameForReal\GameForReal\OnInit.obj GameForReal

Error 6 error LNK1120: 4 unresolved externals C:\Users\XSoloDoloX\Desktop\VecEng\GameForReal\Debug\GameForReal.exe 1 1 GameForReal
Are you sure you're compiling all the source files? Also, why did you repeatedly make the L capital in OnCleanup?
It is just a quick tester program I made to see if i could get a new type of game loop I learned and sdl working and what do you mean compiling all the source files. Sorry im kind of new to c++ programming im more accustomed to java
Last edited on
I'm assuming you're using VC++, are all the .cpp files listed in your project tree? If not, right click on your project in the project tree and add an existing item -> add the missing source files. Otherwise they will not be included in the final program (e.g. not compiling some .java files in the final program).
Yes they are i also individually compiled each file just in case
http://www.cplusplus.com/forum/general/113904/
It seems that you aren't linking SDL, but the `WinMain' may hint a misconfiguration


Provide your build command
http://imgur.com/a/5PwDR; I think thats what your refering to, again I'm still new to the whole c++ programming thing Im very quicly finding the major differences between this and java.
Last edited on
Topic archived. No new replies allowed.