[cfe-dev] Visual Studio 2008 compiling errors

John Thompson john.thompson.jtsoftware at gmail.com
Thu Nov 5 12:55:34 PST 2009


Try:

cmake -G "Visual Studio 9 2008" .

I'll update the docs.

-John
On Thu, Nov 5, 2009 at 12:18 PM, Victor Martin Ulloa <
pelotoescogorciao at yahoo.es> wrote:

> I followed the clang instructions in
> http://clang.llvm.org/get_started.html for VS:
>
>    # Checkout LLVM:
>
>    * svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
>
>    # Checkout Clang:
>
>    * cd llvm\tools
>    * svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
>
>    # Run cmake to generate the Visual Studio solution and project files:
>
>    * cd .. (Change directory back to the llvm top.)
>    * cmake .
>    * The above, if successful, will have created an LLVM.sln file in the
> llvm directory.
>
>    # Build Clang:
>
>    * Open LLVM.sln in Visual Studio.
>    * Build the "clang-cc" project for just the compiler front end.
>
>
>
> but I got some errors after compiling the LLVM.sln clang-cc project....
>
> Code: Select all
>    .\RWMutex.cpp(39) : fatal error C1083: Cannot open include file:
> 'pthread.h': No such file or directory
>    .\raw_ostream.cpp(28) : fatal error C1083: Cannot open include file:
> 'unistd.h': No such file or directory
>    .\Errno.cpp(51) : error C3861: 'strerror_r': identifier not found
>    .\Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot
> convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile LONG
> *'
>    .\IsNAN.cpp(31) : error C3861: 'isnan': identifier not found
>
>
>
> It seems there's no way to compile the clang-cc.exe from the source code
> for Windows/VS2008 ...
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091105/4def9eae/attachment.html>


More information about the cfe-dev mailing list