News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to set up the compiler?

Started by LosConikos, November 10, 2012, 06:46:52 PM

Previous topic - Next topic

LosConikos

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?

oBFusCATed

Create a project and then project -> build options.
Please read the manual, too.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

LosConikos

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 ?

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

LosConikos

Thanks... You helped me a great deal ;-)