Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to add a compiler to Eclipse?(Enabling Eclipse to use the latest CLANG++ compiler)
How to add a compiler to Eclipse? [message #1784054] Thu, 22 March 2018 00:01 Go to next message
JUAN DENT is currently offline JUAN DENTFriend
Messages: 4
Registered: November 2015
Junior Member
Hi,
I have downloaded the latest clang compiler from its website and was wondering how I could install it in Eclipse so I can use it for compilation. I see something about tool chains. I suppose there is a way to add tool chains to Eclipse... If so, could someone point me to a step by step guide or example?

Thanks very much!!

Juan Dent
Re: How to add a compiler to Eclipse? [message #1784058 is a reply to message #1784054] Thu, 22 March 2018 03:17 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
An Eclipse toolchain is basically a makefile generator.
It allows specifying the options for the various tools within the chain to create recipes.
You don't need it if you create your own makefiles.

The toolchain is also used to identify the C and C++ compilers for the Indexer builtin provider.
However, some compilers don't have any way to implement this (Visual C/C++, e.g.).
Lacking a toolchain, you can often modify an existing builtin provider if the new compiler has the ability.

There doesn't appear to be a clang plugin in the Marketplace.

A google search turns up these:
https://gist.github.com/mre/992910
https://stackoverflow.com/a/32780630/3312726
https://stackoverflow.com/a/5708732/3312726
The latter more of an explanation of the relationship between clang and LLVM.

I'm sure there are others
Re: How to add a compiler to Eclipse? [message #1784143 is a reply to message #1784058] Thu, 22 March 2018 20:43 Go to previous message
JUAN DENT is currently offline JUAN DENTFriend
Messages: 4
Registered: November 2015
Junior Member
Thanks!! Too bad no clang to use with Eclipse...
Previous Topic:CDT Plugin-in Development
Next Topic:Best way to import project of cpp
Goto Forum:
  


Current Time: Fri Mar 29 00:16:44 GMT 2024

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

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

Back to the top