[英]Codeblocks on fedora 9 : Cannot build the C project
I have a simple C console application named Test. 我有一个名为Test的简单C控制台应用程序。 But when I build, it says
但是当我建造时,它说
Test - Debug uses a invalid compiler
Nothing to do
What is the error? 有什么错误? The test.cbp(project file) contents are as follows:
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”?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.