Code::Blocks Forums

User forums => Help => Topic started by: LosConikos on November 10, 2012, 06:46:52 pm

Title: How to set up the compiler?
Post by: LosConikos on November 10, 2012, 06:46:52 pm
Hey,

I have to compile my projects with one of the following expressions:
Code
gcc -std=c89 -pedantic -Wall -Wextra 
gcc -std=c99 -pedantic -Wall -Wextra


However, I don't know where to enable these options in Code:Blocks. Can somebody help me?
Title: Re: How to set up the compiler?
Post by: oBFusCATed on November 10, 2012, 06:50:41 pm
Create a project and then project -> build options.
Please read the manual, too.
Title: Re: How to set up the compiler?
Post by: LosConikos on November 10, 2012, 06:54:21 pm
Ok, that's where I supposed it to be. However, I can't figure out where to set
Code
gcc -std=c89
? Is it in "other options"?

And what's the difference between project --> build options and settings --> compiler and debugger ?
Title: Re: How to set up the compiler?
Post by: oBFusCATed on November 10, 2012, 06:55:52 pm
Yes the other options.

The project options are for the project, the settings -> compiler is global for the selected compiler, then applies to all projects and it is not recommended to put anything there.
Title: Re: How to set up the compiler?
Post by: LosConikos on November 10, 2012, 07:06:03 pm
Thanks... You helped me a great deal ;-)