<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 on 64-bit Windows defaults to trying to generate 32-bit code"
   href="http://llvm.org/bugs/show_bug.cgi?id=22424">22424</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang on 64-bit Windows defaults to trying to generate 32-bit code
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5
          </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>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>russell.wallace@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When you build Clang on 64-bit Windows using the 64-bit Microsoft C++ compiler,
the resulting version of Clang still defaults to generating 32-bit code,
leading to nonobvious link time error messages on a test compile of hello.c as
described in:

<a href="http://stackoverflow.com/questions/18452967/clang-microsoft-linker-and-standard-library">http://stackoverflow.com/questions/18452967/clang-microsoft-linker-and-standard-library</a>

This can be worked around by supplying Clang with the -m64 command line option,
but the need for this isn't clear from the error message.

The preferred solution would be for the compiler to default to generating
64-bit code when on a 64-bit system or built with 64-bit Microsoft C++.</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>