Author Topic: How to set up the compiler?  (Read 8381 times)

Offline LosConikos

  • Single posting newcomer
  • *
  • Posts: 3
How to set up the compiler?
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to set up the compiler?
« Reply #1 on: November 10, 2012, 06:50:41 pm »
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!]

Offline LosConikos

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to set up the compiler?
« Reply #2 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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to set up the compiler?
« Reply #3 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.
(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!]

Offline LosConikos

  • Single posting newcomer
  • *
  • Posts: 3
Re: How to set up the compiler?
« Reply #4 on: November 10, 2012, 07:06:03 pm »
Thanks... You helped me a great deal ;-)