Reputation: 29
I'm trying to install SDL but it keeps on bring up this error in visual studio 2013, any suggestions?
//Code
#include <SDL\SDL.h>
int main(int argc, char** argv){
SDL_Init(SDL_INIT_EVERYTHING);
return 0;
}
//Error
//1>------ Build started: Project: Graphics, Configuration: Debug Win32 ------
//1>LINK : fatal error LNK1104: cannot open file 'SDL2.obj'
//========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Upvotes: 1
Views: 3637
Reputation: 1
You have the wrong SDL2 download. Use the VC build, not the mingw when using Visual Studio. You will find the *.lib files within that download that you need.
Upvotes: 0
Reputation: 13690
You have to specify the complete name of the library that you want to add as "Additional Dependencies". The path where libraries have to be looked up are set in "Additional Library Directories".
Replace SDL2
with SDL2.lib
in that field.
Upvotes: 1