Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
No problems with my c++ program syntax but when i run it i get a warning linker error lnk1168.

What I have tried:

I tried to :

-Restart visual studio
-Run it as administator
-Check the file permission
-Disabeling real time protection to check if it's causing the issue
-I checked for other procecess and end tasks
-I tried to clean and rebuilt the file it gives me unable to delete file and access to the file is denied
-I even unistall visual studio and reinstall it

but nothing works!

Any suggesions ?
Posted

Try to use Process Explorer - Sysinternals | Microsoft Learn[^] tool and find out which process is holding the file. Usually it can be the debugger service which may run under system account. In Process Explorer you can kill process. Or at least reboot in safe mode and delete it.
Another solution is to rename the file which is locked and you will be able to build without problem.
Also you can change output or intermediate paths in project configuration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900