gpt4 book ai didi

fedora 9 上的代码块 : Cannot build the C project

转载 作者:行者123 更新时间:2023-11-30 18:09:42 25 4
gpt4 key购买 nike

我有一个名为 Test 的简单 C 控制台应用程序。但是当我构建时,它说

  Test - Debug uses a invalid compiler 
Nothing to do

错误是什么?test.cbp(项目文件)内容如下:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="test" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/test" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Option projectCompilerOptionsRelation="0" />
<Option projectLinkerOptionsRelation="0" />
<Option projectIncludeDirsRelation="0" />
<Option projectResourceIncludeDirsRelation="0" />
<Option projectLibDirsRelation="0" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="/usr/bin" />
</Compiler>
<ResourceCompiler>
<Add directory="/usr/bin" />
</ResourceCompiler>
<Linker>
<Add directory="/usr/bin" />
</Linker>
<Unit filename="main.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<envvars />
<code_completion />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

最佳答案

你安装了“gcc”吗?

关于fedora 9 上的代码块 : Cannot build the C project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1657005/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com