3

So my question is simple.

I want to compile a C project file in gcc compiler 4.4.8.

In windows cmd window I can type :

gcc -std=c99 -O2 -DCONTEST -s -static -lm name.c -o name.exe

In Code::Blocks how can I change the compiler default arguments with the above? I wanted to build a c file and I geting errors like

error: 'for' loop initial declarations are only allowed in C99 mode|
2

1 Answer 1

2

Ok to put your preferred arguments to gnu compiler go to :

Settings -> Debugger -> Compiler settings -> Other Options

and paste there your arguments!

Example:

-std=c99 -O2 -DCONTEST -s -static -lm
Sign up to request clarification or add additional context in comments.

1 Comment

I must wait 2 days for some reason.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.