Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used the instructions here to install eclipse and the here to create an eclipse project but I suspect the instructions were written for an older version of eclipse. Specifically, there is no Build (Incremental Build): build install EXTRA_CFLAGS+=-g... in this version of eclipse. I have created the project without the EXTRA_CFLAGS and have been poking around in it looking for a place to add or set them. I see a number of things that look close in Project Properties but nothing that seems like a match.

share|improve this question
Was there something else you were looking for in the answer? Using EXTRA_CFLAGS+= is usually just a way to join the environment variables with more stuff. – RobotHumans Apr 13 '12 at 20:40
I am not in the office today. I plan to work on this some more on Monday – jacknad Apr 13 '12 at 23:11
up vote 2 down vote accepted

It's not all one line item in eclipse...looking at your link it wants you to do something like this:

gcc -g EXTRA_CFLAGS+=-O0 EXTRA_CFLAGS+=-fno-omit-frame-pointer
Let's take that apart: -g Default debug level so
Project Properties->C/C++ Build->Settings->Tool Settings->Debugging and select Debug Level Default (-g)
enter image description here
-O0 Optimization level so
Same tab Optimization None(-O0)
enter image description here
-fno-omit-frame-pointer so
Same tab Miscellaneous Other flags add -fno-omit-frame-pointer enter image description here
You may or may not want to remove the other flags, but I wouldn't.
So you check in gcc c compiler and it looks like this
enter image description here
Apply and OK.
Repeat the same(disabling debug completely) for your release build. Done and done.

share|improve this answer
Yes. Thanks a million! – jacknad Apr 16 '12 at 10:59
No problem. Glad it worked out for you. – RobotHumans Apr 16 '12 at 12:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.