Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Clang based CC, new CC interface

<< < (5/15) > >>

thomas:
The way this download page looks, there should actually be C++ standard library somewhere. It starts with "sources", and among these is LibC++, which I assume is CLang's equivalent of glibc++. But I can't find it anywhere in the installed compiler. Be nice if they had something like "install instructions", hehehe...

So basically CLang seems to work, as long as you don't try anything like #include <algorithm> or #include <vector>. It compiles and links int main() { return 0; } lightning fast, too  :P. If only it worked for anything else as well...

Well, maybe in 3-4 months. They do seem to be working on getting something usable together.


--- Quote ---What I did was compiling clang itself using MinGW
--- End quote ---
Sadly, wasting days and days on compiling compilers to no avail is something I can't afford any more :(
For me, it really has to work by unpacking a .tar.gz or a .zip file, or by double-clicking an installer.

(Or, in the most extreme case, a script that I need to run unattended (and leave the computer on over night) to do a fully automatic build. But that one had better work without guessing and trying afterwards.)

MortenMacFly:

--- Quote from: thomas on January 17, 2014, 03:56:28 pm ---So basically CLang seems to work, as long as you don't try anything like #include <algorithm> or #include <vector>. It compiles and links int main() { return 0; } lightning fast, too  :P. If only it worked for anything else as well...

--- End quote ---
That basically summarises my experience except hat I provided a C library through MinGW but the linker complained anyways.


--- Quote from: thomas on January 17, 2014, 03:56:28 pm ---Well, maybe in 3-4 months. They do seem to be working on getting something usable together.

--- End quote ---
I am waiting ~1,5 years now.


--- Quote from: thomas on January 17, 2014, 03:56:28 pm ---Sadly, wasting days and days on compiling compilers to no avail is something I can't afford any more :(

--- End quote ---
I never compiled compilers before at all, but this one is rather easy, as configuring, adjusting and start compiling takes ~10 minutes and uses Code::Blocks which works on Windows. Otherwise I wouldn't have wasted my time.

Alpha:

--- Quote from: Alpha on January 16, 2014, 10:26:17 pm ---I downloaded Clang for Windows form here, installed it, added the proper paths to the project file, and it just worked (which did actually surprise me).

--- End quote ---
Oh, sorry, I should have specified.  By 'worked' I was referring to linking with this plugin, and providing access to its AST and CC.

When initializing a unit with libclang, it takes flags as if compiling through the console.  As part of the flags, my plugin passes it the search paths of MinGW's headers.  Because that seems to have worked in the plugin, maybe it will work for compiling as well... I will do some tests.

Ivan171:
Hi, i'm new to the forum. First of all english is not my native language, so, bear with me.

Well, my experience with clang is not that bad. Everything i've tried to compile with it up to now, have worked pretty well (Although i use it mostly for testing purposes at the moment). Including C++, which i see a lot of people saying it doesn't work on Windows. It does work. At the moment, Clang from svn, is able to bootstrap on Windows (using Mingw 4.7+).

But it have some issues, like, dllimport/dllexport does not work for classes. It doesn't support Win64 EH (There's no exceptions at all on Windows 64). This issues is being worked on by the way.

Clang 3.4 does not work with Mingw 4.7+ due to ABI incompatibilities.

Alpha:
A few glamour shots of this plugin.

Operator resolution (also right click, jump to declaration works).


Syntax highlighting in documentation popups.


Dynamic checking of code validity.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version