Code::Blocks Forums

User forums => Help => Topic started by: MLinford on March 16, 2007, 07:17:05 am

Title: C programming compiling with g++?
Post by: MLinford on March 16, 2007, 07:17:05 am
Hi, installed c::b kind of recently and am a bit confused. I started a new project to see if I had it set up correctly on my ubuntu installation. Installation was pretty straightforward, so I didn't see where I could've gone wrong. But although I explicitly told it to create a C program, when I try to compile it I get errors that g++ isn't installed. I just did a basic "Hello, world" program by changing the output line from the canned command-line option when creating the project. Also, it's a .c file so GCC should recognize that g++ isn't needed anyways, right?

Thanks,
Mike
Title: Re: C programming compiling with g++?
Post by: Pecan on March 16, 2007, 12:00:47 pm
Make sure the path to your tool chain has been specified to CB.

MainMenu=>Setting=>Compiler&Debugger=>Global Compiler Settings Settings/Tool Chain executables

(http://img221.imageshack.us/img221/6964/161bg7.png)
Title: Re: C programming compiling with g++?
Post by: MLinford on March 17, 2007, 05:55:23 am
Yeah, my variables are the same except that they're not the mingw32 ones as I'm not using windows.