<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang 3.4 does not work at all on Windows."
href="http://llvm.org/bugs/show_bug.cgi?id=18906">18906</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang 3.4 does not work at all on Windows.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bkey76@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I downloaded and installed CLang 3.4 on Windows 7 x64. It does not seem to work
at all.
I am trying to compile the following simple C++ program.
#include <iostream>
int main()
{
std::cout
<< "Hello World! It truly is a wonderful day to be alive!."
<< std::endl;
return 0;
}
I have Visual Studio 2005, 2010, 2012, and 2013 installed on the same system.
When I run the command "clang++ hello.cpp" I get the following error.
fatal error: 'iostream' file not found
I get this error regardless of whether or not I first open the "Developer
Command Prompt for VS2013."
When I run the command "clang-cl hello.cpp" I get the following errors.
"""
In file included from hello.cpp:1:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\iostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\istream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\ostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\ios:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xlocnum:10:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\streambuf:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xiosbase:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xlocale:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\stdexcept:7:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xstring:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xmemory0:9:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\xutility:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\utility:8:
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(620,32) : error: '_Ty' does not refer to a value
: _Cat_base<_IS_CONSTRUCTIBLE(_Ty, _Args...)>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(617,15) : note: declared here
template<class _Ty,
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(621,1) : error: expected class name
{ // determine whether _Ty(_Args...) is constructible
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(746,19) : error: '_Ty' does not refer to a value
_IS_DESTRUCTIBLE(_Ty)
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(48,31) : note: expanded from macro
'_IS_DESTRUCTIBLE'
: _Cat_base<__is_destructible(_Ty)>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(744,15) : note: declared here
template<class _Ty>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(747,1) : error: expected class name
{ // determine whether _Ty has a destructor
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(887,40) : error: '_Ty' does not refer to a value
: _Cat_base<_IS_NOTHROW_CONSTRUCTIBLE(_Ty, _Args...)>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(884,15) : note: declared here
template<class _Ty,
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(888,1) : error: expected class name
{ // determine whether _Ty(_Args...) is nothrow constructible
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(951,25) : error: '_To' does not refer to a value
_IS_NOTHROW_ASSIGNABLE(_To, _From)
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(50,37) : note: expanded from macro
'_IS_NOTHROW_ASSIGNABLE'
: _Cat_base<__is_nothrow_assignable(_To, _From)>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(947,15) : note: declared here
template<class _To,
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(953,1) : error: expected class name
{ // determine whether _From can be assigned to _To, nothrow
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(1000,27) : error: '_Ty' does not refer to a value
_IS_NOTHROW_DESTRUCTIBLE(_Ty)
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(52,39) : note: expanded from macro
'_IS_NOTHROW_DESTRUCTIBLE'
: _Cat_base<__is_nothrow_destructible(_Ty)>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(997,15) : note: declared here
template<class _Ty>
^
C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC\include\type_traits(1002,1) : error: expected class name
{ // determine whether _Ty has a nothrow destructor
^
10 errors generated.
"""
I thought that this was possibly due to an incompatibility with the Visual
Studio 2013 headers. So I tried opening the "Developer Command Prompt for
VS2012."
clang++ yields the same results. However, clang-cl yields different results.
When I run the command "clang-cl hello.cpp" I get the following errors.
"""
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
error: cannot mangle the name of type 'system_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'runtime_error' yet
error: cannot mangle the name of type 'runtime_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'exception' yet
error: cannot mangle the name of type 'exception' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
error: cannot mangle the name of type 'system_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'runtime_error' yet
error: cannot mangle the name of type 'runtime_error' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'exception' yet
error: cannot mangle the name of type 'exception' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'failure' yet
error: cannot mangle the name of type 'failure' into RTTI descriptors yet
error: cannot mangle RTTI descriptors for type 'system_error' yet
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
"""
Does anyone have any suggestions?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>