• 0

Eclipse build properties


Question

Hi, I would like to change the default compiler for all my c projects in eclipse is there a way to do it ? The default compiler is outdated and does not conform to c11. So is gdb, autoconf, make, as, automake and autoconf. Is there a way to point eclipse to the new binaries that I have downloaded using macports ? Maybe this can all be done in some configuration file. I have had problems with these outdated versions in debugging etc. For instance, my colleague has visual studio and when he compiles some of my code in his machine it gives out errors, while in my system it does not! Another example is that the library stdio.h does not have NULL defined althought it should be there ( nor does it include any header that does that). I have also had problems with fflush( stdin ), sometimes it does not clean the keyboard buffer :s.

Simple enough though:


#ifndef NULL
#define NULL ( ( void * )0 )
#endif
[/CODE]

Thanks. I am running eclipse on mac os x lion.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Is there a problem if I use symbolic links and place them in usr/bin ? So that it points to the new versions found in the macports opt folder ? By doing that I think eclipse would use the updated tools :D. Is there a reason not to do this ?

Link to comment
Share on other sites

This topic is now closed to further replies.