LNK1181: cannot open input file ‘SDL2.lib’ [closed]


Trying to make a small project that needs SDL linked in. I’m relatively new to this workflow so am quite stuck.

Here is my project setup:
General Properties

I’m using C++ 20 and am compiling to a static library

VC++ Directories

I’ve included the directory to the include and lib folders

The additional header folder path

And finally the library, in the additional dependencies and the path is correct, I have double and tripled checked.

I’ve tried all sorts of configurations, I’ve cleaned and rebuilt the project and nothing seemed to have worked.

Here are the relevant paths:

Project/Dependencies/SDL/include

Project/Dependencies/SDL/lib

libraries are x64 and SDL2.lib definitely exists there.

Leave a Reply

Your email address will not be published. Required fields are marked *