Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Change default C++ version
Change default C++ version [message #1419516] Mon, 08 September 2014 18:39 Go to next message
alagalah alagalah is currently offline alagalah alagalahFriend
Messages: 5
Registered: September 2010
Junior Member
Hi there,

Sorry for the n00b question. I currently use Eclipse on a OSX 10.9.4.

I installed from HPC GCC v4.9.0 and updated my PATH variable.

From Terminal if I run "gcc --version" I get 4.9.0 as the result.

If I run a C++ project with this:

****
version << "GCC version: "
<< __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__
<< "\nVersion string: " << __VERSION__;
****

I get 4.2.1, which I think is the system default used by Xcode.

I'd like to globally in Eclipse (ie not on a per project basis) use 4.9.0.

How do I set this??

Thanks

Re: Change default C++ version [message #1419723 is a reply to message #1419516] Tue, 09 September 2014 02:29 Go to previous message
Eclipse UserFriend
Missing name Mising name wrote on Mon, 08 September 2014 18:39
Hi there,

Sorry for the n00b question. I currently use Eclipse on a OSX 10.9.4.

I installed from HPC GCC v4.9.0 and updated my PATH variable.

From Terminal if I run "gcc --version" I get 4.9.0 as the result.

If I run a C++ project with this:

****
version << "GCC version: "
<< __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__
<< "\nVersion string: " << __VERSION__;
****

I get 4.2.1, which I think is the system default used by Xcode.

I'd like to globally in Eclipse (ie not on a per project basis) use 4.9.0.

How do I set this??

Thanks



Try Window > Preference > (Expand) C/C++ > New C/C++ Project Wizard > (Specify the preferred Toolchain)

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames
Previous Topic:Annoying issue regarding c/c++ CDT using Eclipse.
Next Topic:eclipse does not work !
Goto Forum:
  


Current Time: Mon Dec 30 17:26:48 GMT 2024

Powered by FUDForum. Page generated in 0.02902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top