I'm getting this linker error in MSVC++ 2008
1>LINK : fatal error LNK1104: cannot open file 'msvcprtd.lib'
I know what it means, I just can't figure out how to get the library back.
I might have accidently removed it(did).
Printable View
I'm getting this linker error in MSVC++ 2008
1>LINK : fatal error LNK1104: cannot open file 'msvcprtd.lib'
I know what it means, I just can't figure out how to get the library back.
I might have accidently removed it(did).
Post some code - I doubt that the problem is with missing library files unless you were foolish enough to go deleting stuff in the compiler's directories. If you did, the easiest way to fix it is probably a reinstall of your compiler.
The code is irrelevant. The error is always there.
Well, then: were you so foolish as to go deleting stuff in the compiler directories? msvcprtd.lib is the standard C++ library in debug DLL version. You can delete/reinstall to try to get it back, I suppose (if it's not in your recycle bin or undelete et cetera), or don't use debug anymore.
I just removed it, didn't actually delete it. Also, I switched to realease, rebuilt the project and I still got the same error.
Nvm. I'll just reinstall.
Tell us exactly what you did (because while you may think you mean something when you say "I just removed it, didn't actually delete it", I'm pretty sure you don't).
I tried reinstalling and the error is still there.
I wen't to tools>options>VC++ Directories and tried adding a new directory for the sfml libraries. I tried it once then realized it was wrong. When I went back I clicked on the removed button accidently twice. There are a bunch of other standard directories there and it was problaby one of those.
New info I just noticed::I looked in the standard for libraries and sure enough there was that file. For some reason the compiler is not detecting it. It might be the directory path I REMOVED and NOT DELETED.
Then: find whatever directory your .lib file lives in, and put it back in the include list.
the lib list, not the include list. the include list is for include files.
Ok. It's not what was originally there but it will work. Thanks.