Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cplus101 on February 07, 2012, 05:59:32 am

Title: unable to compile Console application
Post by: cplus101 on February 07, 2012, 05:59:32 am
Hi
 
   I just installed codeblock and created a console application.  When I hit <Build & Run>, I got this error,

"sample1 - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...

Nothing to be done.

   Pls help, thank you.


Regards,


Cplus101
Title: Re: unable to compile Console application
Post by: ollydbg on February 07, 2012, 06:11:33 am
See below:
YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!
Title: Re: unable to compile Console application
Post by: cplus101 on February 07, 2012, 07:01:48 am
Hi,

   Thanks any way.  I resolved it: 

    1) go to Setting -> Compiler and Debugger

    2) select <Toolchain Executable> tab

    3) Change compiler's Installation Directory

        I installed my codeblock at "C:\Program Files\CodeBlocks\MinGW"

        NOTE:  you need to know where MinGW was installed.

      It works!


       
Title: Re: unable to compile Console application
Post by: ctrl_xvc on September 23, 2012, 05:38:29 pm
nice one
 ::)
work for me thx