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:
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 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 ;-)