With this error message, I would presume that you're using Visual Studio.
Make sure that your linking properties are set for each build - debug and release.
It looks like it is the location of the libs that is failing so try, in the project's properties window, changing Configuration between Debug and Release to see if how each are set up. To change both at once, choose All Configurations. Be aware, though, that obviously some things need to be different for debug and release properties so only change to all configurations when you know you want to be changing both.