I have written my own Makefile (instead of having Eclipse generate one for me automatically).
When I build my C++ project within Eclipse (Indigo) it uses /usr/bin/g++ which is a symbolic link to an older version of g++ (g++-4.2).
The problem is that I have updated my version of gcc to gcc-4.4. Opening up a terminal, it is clear that this newer version of gcc has been correctly installed as the default (like I wanted).
>> g++ --version
g++ (MacPorts gcc44 4.4.7_2) 4.4.7
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So why is eclipse still using the old version of g++? Is there some property somewhere where I can specify the directory of the new g++ compiler? I would prefer to change where Eclipse is looking instead of changing my system paths or my Makefile.
I added the path /opt/local/bin to Eclipse's build variable PATH and made sure it was before /usr/bin (Eclipse >> Preferences >> Build >> Build Variables) but this did not solve the issue.
If I need to post my Makefile, what OS I'm running, etc. let me know. This is my first time posting.