Mikael Lyngvig
2012-May-25 16:32 UTC
[LLVMdev] Minor correction to the Visual Studio documentation
Now I recall what the problem was that I had: My code makes use of the Win32 API and that means pulling in Windows.h, which again pulls in some headers that make use of the force_inline thingy, which is not supported under Windows yet. I guess if I stuck with portable code, I could probably use Clang for Windows. Once again, I have to visit the thinking box and figure out what to do. But thanks for the description of how to do this. It is surely going to save both me and others a lot of time. 2012/5/25 Nathan Jeffords <blunted2night at gmail.com>> I checkout LLVM and clang from SVN, then use CMake to generate project > files for Visual Studio 2010 (I started with 2008). The LLVM project > compiles successfully and gives me all the tools including Clang. For a few > tests, I compile C++ code with Clang which if I need to I link, I use > MinGW's ld passing all the relevant object files and libraries including > correctly ordering the start-up code and such. > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120525/8737aec5/attachment.html>
Anton Korobeynikov
2012-May-25 17:08 UTC
[LLVMdev] Minor correction to the Visual Studio documentation
Hello Mikael,> Now I recall what the problem was that I had: My code makes use of the Win32 > API and that means pulling in Windows.h, which again pulls in some headers > that make use of the force_inline thingy, which is not supported under > Windows yet.Or you can use windows.h from mingw :) -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Mikael Lyngvig
2012-May-25 17:46 UTC
[LLVMdev] Minor correction to the Visual Studio documentation
Yes, thank you! I didn't think of that. 2012/5/25 Anton Korobeynikov <anton at korobeynikov.info>> Hello Mikael, > > > Now I recall what the problem was that I had: My code makes use of the > Win32 > > API and that means pulling in Windows.h, which again pulls in some > headers > > that make use of the force_inline thingy, which is not supported under > > Windows yet. > Or you can use windows.h from mingw :) > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University >-- -- Earth is a soddy place. Stay away! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120525/a5f7c0dd/attachment.html>
Maybe Matching Threads
- [LLVMdev] Minor correction to the Visual Studio documentation
- [LLVMdev] Minor correction to the Visual Studio documentation
- [LLVMdev] Minor correction to the Visual Studio documentation
- [LLVMdev] Minor correction to the Visual Studio documentation/Windows support in general
- [LLVMdev] Minor correction to the Visual Studio documentation/Windows support in general