Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 237
Victor Avatar asked Dec 04 '25 11:12

Victor


1 Answers

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

like image 68
High Performance Mark Avatar answered Dec 07 '25 15:12

High Performance Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!