[LLVMbugs] [Bug 17428] New: [Windows toolchain] Developer Command Prompt for VS2012 clang++ link fails
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 1 06:56:19 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17428
Bug ID: 17428
Summary: [Windows toolchain] Developer Command Prompt for
VS2012 clang++ link fails
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: bdawes at acm.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11312
--> http://llvm.org/bugs/attachment.cgi?id=11312&action=edit
Output from clang++ showing link failures
Running under the "Developer Command Prompt for VS2012", this program:
#include <iostream>
int main()
{
std::cout << "Hello, world\n";
}
compiles and runs fine with VC++ 2012, using the command lines:
>cl hello.cpp
>hello
using the command line:
>clang++ hello.cpp
It compiles OK, but the link fails with messages like:
hello-111ee3.o : error LNK2019: unresolved external symbol __ZSt4cout
referenced in function _main
Attached is the output file created by this command line:
>clang++ -v hello.cpp >clang++.log 2>&1
Feel free to contact me for more information.
--Beman Dawes
--
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/20131001/4fe3f286/attachment.html>
More information about the llvm-bugs
mailing list