You are linking a “shared” library. The .lib is a stub, the actual implementation is found in DevIL.dll.
So windows must be able to find this file. You have 2 options. Put it in the same path as your executable. Which would be c:…\yourproject
Or you can add the location of DevIL.dll to system path. Control Panel -> System Settings -> Environment Variables
move devil.lib to the ‘additional library directories’ in the project settings->linker->General category.
In settings->linker->Input add devil.lib
then mov devil.lib to your project directory.
By the way… dvil it’s too old. managing states is very ugly. I recommend you to use FreeImage. Here is some GL-Freeimage sample code: