[cfe-dev] [CLang] First try
Klaim
mjklaim at gmail.com
Thu Oct 28 09:59:12 PDT 2010
Hi!
I'm following the CLang developpement for some time but didn't try to use it
until this week (on spare time).
Could someone confirm me some points I hit while trying to use CLang?
1. I first installed llvm/clang 1.28 on Ubuntu 10.10. I tried to simply
compile a hello world like this one (from memory) :
#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
std::cin.ignore();
return 0;
};
Clang couldn't find iostream. From the website I see that I might require to
change a line of code of clang to make it use gcc's std include folder. Am
I right?
2. I switched to Windows but this time wanted to compile CLang (I'm more
used to Visual Studio than other environnement for C++) and start looking at
the code once it runs correctly. I got the 1.28 tag version.
I used cmake to generate the 64bit version of the project files for
Visual Studio 2010. It generates almost correctly but there seem to be a lib
missing, making the whole compilation never work without this lib undefined
(in CMake files?). Am I correct in thinking this is not supported yet?
3. Then I switch to 32bit "normal" Visual Studio 2010 projects. Everything
compiled apparently correctly (wel done guys! :D ). I built directly the
Release mode
Is the Release mode the final binary mode or is the small size mode the
final one?
4. Then I tried to build the same (rewritten from memory) hello world than
previously. I got a bunch of errors because it seem that it tries to use
VS2010 STL headers (that's ok) but C++0x R-Value References don't seem to be
supported so it couldn't handle the headers that seem to heavily use it (as
VS2010 implement a version of RVR ).
a. I might have not looked at the right documentation but I couldn't
find a way to try activate C++0x features in CLang. I know there should be
only minor support for this at the moment, but is there such a command line
parametter?
b. Does this relate exclusively to the fact that the current version
doesn't totally works with those headers? I know this is a work in progress,
from what I've read on this list.
c. Is there a way to set another std include folder to use without
having to recompile CLang?
Thanks for your time.
Joël Lamotte.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101028/fe98a150/attachment.html>
More information about the cfe-dev
mailing list