[LLVMbugs] [Bug 11405] Linker errors on "Hello, world!" in Windows

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 2 16:52:27 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=11405

reid.kleckner at gmail.com <reid.kleckner at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |reid.kleckner at gmail.com
         Resolution|---                         |FIXED

--- Comment #9 from reid.kleckner at gmail.com <reid.kleckner at gmail.com> ---
There seem to be a few issues here:
1. hello world with iostream with MSVCRT
2. hello world with printf with MSVCRT
3. hello world with some other standard libraries

Today there are no more link errors with iostream hello world and the MSVCRT. 
There are errors about intrin.h which are outstanding, but if I hack around it
locally I can get the following to work:

$ ls intrin.h
intrin.h

$ cat hello.cpp
#include <iostream>
int main() {
  std::cout << "hello, world!" << std::endl;
}

$ clang -fmsc-version=1700 -isystem . -msse4a -D_HAS_EXCEPTIONS=0 -fno-rtti
-fno-exceptions -Xclang -cxx-abi -Xclang microsoft hello.cpp && ./a.out
hello, world!

We already have issues open about supporting Microsoft intrinsics and resolving
these issues, so I don't see a need to keep this open:
http://llvm.org/bugs/show_bug.cgi?id=13283

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130802/24d8cd22/attachment.html>


More information about the llvm-bugs mailing list