4

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.

2
  • 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. Apr 13, 2012 at 20:40
  • I am not in the office today. I plan to work on this some more on Monday
    – jacknad
    Apr 13, 2012 at 23:11

1 Answer 1

2
+50

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.

1
  • No problem. Glad it worked out for you. Apr 16, 2012 at 12:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .