【发布时间】:2017-01-20 15:27:50
【问题描述】:
我在使用 codeblocks-16.01mingw-setup.exe 时遇到问题 - 安装在路径不包含空格的文件中 - 尝试在命令提示符下编译时。初学者指南建议在命令提示符中使用以下行:
gcc cards.c -o cards
用于名为cards.c 的源文件(在我的桌面上)。这给出了错误
'gcc' is not recognised as an internal or external command, operable program or batch file.
当试图解决这个问题时,我发现您可以在命令提示符中拖放文件并指定它们的路径。使用取自 F:\Programare\Codeblocks\MinGW\bin\gcc.exe 的 gcc.exe 执行此操作并将 c 源文件添加为 C:\Users\dream\Desktop\cards.c 会出现错误
as.exe - System error: The program can't start because libintl-8.dll is missing from your computer. Try reinstalling the program to fix this problem.
我已恢复我的代码块但无济于事。我还尝试将编译器的路径与源文件匹配,将源代码带到编译器所在的位置,再次无济于事。
请帮助我理解这个问题。我必须说名为 libintl-8.dll 的文件就在 gcc.exe 所在的位置,尝试在命令提示符中添加它会产生一些语法错误。
【问题讨论】:
标签: c compilation command-prompt