Search code examples
sdllinker-errorsvisual-studio-expressvisual-c++-2010visual-c++-2010-express

Can't compile SDL project (linker error) with Visual C++ 2010 Express Edition


I am trying to compile a sample SDL project in Visual Studio C++ Express Edition. I have the following linker error:

LINK : fatal error LNK1104: cannot open file 'SDL.lib SDLmain.lib'

The problem here is: I added the libraries to the input in the linker section (Additional Dependencies). Why am I having such problem if I added them to the project?

In VC++ Directories I added the libraries directory to the Library Directories value.


Solution

  • Did you add the location of those libraries to Additional Library Directories on the Linker/General page in your project's properties ?