[llvm-bugs] [Bug 26755] New: clang-cl produces 32-bit obj file that doesn't link
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 26 16:22:01 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26755
Bug ID: 26755
Summary: clang-cl produces 32-bit obj file that doesn't link
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
C:\src\chrome\src>type foo.cc
int main() {
delete new int;
}
C:\src\chrome\src>cl foo.cc
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
foo.cc
Microsoft (R) Incremental Linker Version 12.00.31101.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:foo.exe
foo.obj
C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe"
-m32 foo.cc
foo-fbcd47.obj : error LNK2019: unresolved external symbol "void * __cdecl
operator new(unsigned int)" (??2 at YAPAXI@Z) re
ferenced in function _main
foo-fbcd47.obj : error LNK2019: unresolved external symbol "void __cdecl
operator delete(void *)" (??3 at YAXPAX@Z) referen
ced in function _main
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
foo.exe : fatal error LNK1120: 3 unresolved externals
clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see
invocation)
--
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/20160227/55ce24b9/attachment-0001.html>
More information about the llvm-bugs
mailing list