Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
collect2.exe:错误:ld在eclipse cdt中返回了1个退出状态_C_Eclipse_Eclipse Cdt - Fatal编程技术网

collect2.exe:错误:ld在eclipse cdt中返回了1个退出状态

collect2.exe:错误:ld在eclipse cdt中返回了1个退出状态,c,eclipse,eclipse-cdt,C,Eclipse,Eclipse Cdt,我是编程的初学者。我正在使用EclipseCDT进行C编程。当我构建任何程序时,控制台窗口显示以下消息。请告诉我解决这个问题的具体方法 控制台窗口: Info: Configuration "Debug" uses tool-chain "MinGW GCC" that is unsupported on this system, attempting to build anyway. Info: Internal Builder is used for build gcc -O0 -g3 -W

我是编程的初学者。我正在使用EclipseCDT进行C编程。当我构建任何程序时,控制台窗口显示以下消息。请告诉我解决这个问题的具体方法

控制台窗口:

Info: Configuration "Debug" uses tool-chain "MinGW GCC" that is unsupported on this system, attempting to build anyway.
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o test.o "..\\test.c" 
gcc -o test.exe test.o 
c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.9.2/../../../../i686-pc-mingw32/bin/ld.exe: cannot open output file test.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

00:33:35 Build Finished (took 2s.385ms)

通常(根据我的经验),LD错误是由于您没有包含必要的库或链接器而导致的。转到您的项目,右键单击,选择“属性”,在“C构建”下转到“设置”、“GCC编译器”和“包括”并添加库。

如果您的系统正在运行,请尝试关闭任何防病毒功能。尝试以管理员身份运行Eclipse…感谢您的帮助…我不敢相信它是否有效。是吗?:)