News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

unable to compile Console application

Started by cplus101, February 07, 2012, 05:59:32 AM

Previous topic - Next topic

cplus101

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

ollydbg

See below:
YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

cplus101

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!


       

ctrl_xvc