Hi!<div><br></div><div>I'm following the CLang developpement for some time but didn't try to use it until this week (on spare time).</div><div><br></div><div>Could someone confirm me some points I hit while trying to use CLang? </div>
<div><br></div><div>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) :</div><div><br></div><div>#include <iostream></div><div><br></div><div>int main()</div>
<div>{</div><div> std::cout << "Hello, World!" << std::endl;</div><div> std::cin.ignore();</div><div> return 0;</div><div>};</div><div><br></div><div>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?</div>
<div><br></div><div>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.</div>
<div> 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?</div>
<div><br></div><div>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</div><div> Is the Release mode the final binary mode or is the small size mode the final one?</div>
<div><br></div><div>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 ). </div>
<div> 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?</div>
<div> 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.</div><div> c. Is there a way to set another std include folder to use without having to recompile CLang? </div>
<div><br></div><div><br></div><div>Thanks for your time.</div><div><br></div><div>Joël Lamotte.</div>