Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have been trying to install SDL into visual studio 2013 and each time time debug it and run in to an error this is my code:

XML
#include <SDL\SDL.h>


int main(int argc, char** argv[]){

    SDL_Init(SDL_INIT_EVERYTHING);
    return 0;
}


and the error says this:

Error 1 error LNK2019: unresolved external symbol _SDL_Init referenced in function "int __cdecl SDL_main(int,char * * * const)" (?SDL_main@@YAHHQAPAPAD@Z) c:\Users\antho_000\documents\visual studio 2013\Projects\RPG\RPG\game.obj RPG

Error 2 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup c:\Users\antho_000\documents\visual studio 2013\Projects\RPG\RPG\MSVCRTD.lib(crtexe.obj) RPG

Error 3 error LNK1120: 2 unresolved externals c:\users\antho_000\documents\visual studio 2013\Projects\RPG\Debug\RPG.exe RPG


and i cant find my exe file on my debug folder pls help me guys [^]
Posted
Updated 8-Apr-15 20:44pm
v2
Comments
Richard MacCutchan 9-Apr-15 2:45am    
Learning how to build applications might be a good start.
And BTW, it is not Windows and it is not crap.
[no name] 9-Apr-15 3:12am    
You mean learning that it's no wonder that the compiled program is not in the project folder when the linker can't resolve a few external references?
gipsy danger 9-Apr-15 10:13am    
i cant like SDL to my project after linking it i tried ti run it but it brings up an error

1 solution

Have a look at this page: "Lesson 0: Visual Studio Setting Up SDL"[^].
 
Share this answer
 
Comments
gipsy danger 9-Apr-15 10:11am    
i have still not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900