Jav_Rock
Jav_Rock

Reputation: 22245

Building error c101008d Visual Studio c++ related to mt.exe

I need to compile a code in C++ which has some OpenCV functions and does a kind of test. The fact is that the code has worked in other computers, I just need to set the includes and libraries properly to make it work on my PC.

I get this strange error in release mode when building.

Error: general error c101008d: Failed to write the updated manifest to the resource of file ".\bin\pcTest.exe". The process cannot access the file because it is being used by another process. mt.exe

I found other answers that say mt.exe has to do with the antivirus, or something like that. Anybody knows why is this happening or how can I solve it?

Upvotes: 3

Views: 8118

Answers (2)

dem7w2
dem7w2

Reputation: 166

I get this error when I try to output the debug version of an executable into a directory that exists in my C:/Program Files (x86) directory. This is a Visual Studio project property I set. (Right click project | Properties | General | Output Directory).

I fixed this issue by temporarily disabling Symantec Endpoint Protection. If your privs don't allow you to do that, you can try outputting the executable somewhere else then copy/pasting it into the desired directory.

Upvotes: 1

Stuart Golodetz
Stuart Golodetz

Reputation: 20656

Is the .exe file there when you look for it? If so, check whether something else is locking it using LockHunter (http://lockhunter.com). The only time I've had this error is when I've already been running the program and then tried to build it again -- make sure that's not what's happening :)

Upvotes: 1

Related Questions