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.

  • 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

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.

  • No problem. Glad it worked out for you. – RobotHumans Apr 16 '12 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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