简体   繁体   English

程序退出代码:5 - Geany with gcc

[英]Program exited with code: 5 - Geany with gcc

my issue: when I compile and build my program in C (using gcc compiler and geany as editor), no problem, fil object and executable are fine.我的问题:当我在 C 中编译和构建程序时(使用 gcc 编译器和 geany 作为编辑器),没问题,fil object 和可执行文件都很好。 But when I try to execute from Geany or manually from Prompt (as Admin), I get this kind of error.但是当我尝试从 Geany 或从 Prompt 手动执行(作为管理员)时,我得到了这种错误。 It became to appear after installing Visual Studio, I don't know if it causes some issue like this.安装Visual Studio后就出现了,不知道是不是这样的问题。 Before its installation I had no problem.在安装之前我没有问题。

I've set all kinds of permission, r/w files and dirs, but everytime I go view Property File of my.exe I find "Read Only" permission.我已经设置了各种权限,r/w 文件和目录,但是每次我 go 查看 my.exe 的属性文件时,我都会找到“只读”权限。 Then, I try to execute, Promt give me exit error code 5 and my.exe file have been deleted automatically.然后,我尝试执行,Promt 给我退出错误代码 5 并且 my.exe 文件已被自动删除。

How can I solve this problem?我怎么解决这个问题? Thanks all folks.谢谢大家。

Exit error code 5 means access denied.退出错误代码 5 表示访问被拒绝。 Together with the executable being deleted automatically, that points to your antivirus being at fault.连同被自动删除的可执行文件,这表明您的防病毒软件有问题。 Replace it with a better one.换一个更好的。

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

相关问题 gdb:程序已退出,代码为030000000375 - gdb: Program exited with code 030000000375 合并排序程序崩溃并显示“退出代码:3221225477” - Merge Sort Program crashes with "Exited with code: 3221225477" 写套接字导致C中的“程序退出,代码141” - write socket causes “program exited with code 141” in C 深度 q 学习程序退出,代码为 -1073741819 - Deep q-learning program exited with code -1073741819 C 在 Windows 10 上的 Geany 中包含自定义 header 文件,使用 ZE0D511356BD94123ZDCCCF9 编译 - C Include custom header file in Geany on Windows 10 compiling with gcc gcc无法将* .C源代码识别为有效的c程序 - gcc not recognize *.C source code as valid c program 为什么具有不同gcc版本的简单C程序的汇编代码不同? - Why assembly code is different for simple C program with different gcc version? 在C程序(与gcc一起编译)中的汇编代码(为masm编写)…如何? - Assembly code (written for masm) in C program (compiled with gcc)… how? Netbeans 8.0.2返回“在启动程序退出时,代码为0xc0000135” - Netbeans 8.0.2 returns “During startup program exited with code 0xc0000135” "C 程序:[Done] 在 2.322 秒内以 code=3221225477 退出(Calloc \/ Free \/ Segmenation Error?)" - C program: [Done] exited with code=3221225477 in 2.322 seconds (Calloc / Free / Segmenation Error?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM