views:

138

answers:

1

I have a simple C console application named Test. 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:

<?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>
A: 

did you install the ' gcc '?

EthanZ6174
That looks like the most possible cause.
Amit
:) good for youand BTW, i prefer using terminal than IDEs...
EthanZ6174
No I have gcc installed. And its properly working. I also generally do by terminal. But I have a long code which is to be debugged. I dont want to go for netbeans, it takes too much memory.
avd
@lex and... how about the gdb? that works for debug the same
EthanZ6174
@EthanZ6174: Ya gdb also works
avd