简体   繁体   English

emacs Windows编译器文件权限

[英]emacs windows compiler files permissions

I have a problem when compiling shared libraries and executables using emacs on Windows 在Windows上使用emacs编译共享库和可执行文件时出现问题

The permissions on the files that the compiler is producing are such that I cannot recompile the code as it cannot overwrite the previous .dll or .exe 编译器生成的文件的权限使我无法重新编译代码,因为它无法覆盖以前的.dll或.exe

Currently I am having to go in and delete the files manually via explorer before I can recompile 目前,我必须先通过资源管理器手动删除文件,然后才能重新编译

never had this issue under linux 在Linux下从来没有这个问题

anyone know of a workaround as all this manual file deleting is getting tedious 任何人都知道解决方法,因为所有手动文件删除操作都很繁琐

Turns out it wasn't a file permissions thing. 事实证明这不是文件权限。 The problem was that gdb under windows (as provided by MinGW) locks the executable and any associated shared libraries when it is running so you can't recompile the executable or any of the shared libraries whilst gdb is running. 问题是Windows下的gdb(由MinGW提供)在运行时会锁定可执行文件和任何关联的共享库,因此您无法在gdb运行时重新编译可执行文件或任何共享库。 This is not the case when doing the same thing under linux. 在linux下执行相同操作时不是这种情况。 All you need do under under windows is stop the debugger with k then recompile then start it again. 在Windows下您需要做的就是用k停止调试器,然后重新编译,然后再次启动它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM