User forums > Using Code::Blocks

Need help with compiler issues

(1/1)

CameoCool:
Hi guys. I am on mac, and i am currently using code::blocks as a compiler for C++ applications. I am having problems, though. When i try to compile a program, instead of terminal popping up with my application, a message appears at the bottom under build log:

"Bob - 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.

Why isn't it working? Did i do something wrong under the setup? Here is a pic of the settings:

Is that what it should look like?
Sorry, i'm a new at this kind of stuff.

P.S. Its a console application.

kencamargo:

--- Quote from: CameoCool on September 27, 2010, 11:48:40 pm ---Hi guys. I am on mac, and i am currently using code::blocks as a compiler for C++ applications. I am having problems, though. When i try to compile a program, instead of terminal popping up with my application, a message appears at the bottom under build log:

"Bob - 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.

Why isn't it working? Did i do something wrong under the setup? Here is a pic of the settings:

Is that what it should look like?
Sorry, i'm a new at this kind of stuff.

P.S. Its a console application.

--- End quote ---

That is not where the toolchain is set, check "Settings|Compiler and Debugger", and then the tab "Toolchain executables". Make sure you have gdb (the gnu debugger) installed. See if the "Debugger" option points to a valid debugger.

And as per forum rules, do search the forums before asking, lots of people have asked precisely that just in the past week...

Ken

oBFusCATed:

--- Quote from: CameoCool on September 27, 2010, 11:48:40 pm ---.... and i am currently using code::blocks as a compiler for C++ applications....

--- End quote ---

Read this:
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_is_Code::Blocks.3F
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

kencamargo:

--- Quote from: oBFusCATed on September 28, 2010, 08:30:37 am ---Read this:
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_is_Code::Blocks.3F
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

--- End quote ---

You should make a stamp out of this... :)

Ken

Navigation

[0] Message Index

Go to full version