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: unassignedclangb...@nondot.org Reporter: nicolaswe...@gmx.de CC: llvm-bugs@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@YAPAXI@Z) re ferenced in function _main foo-fbcd47.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs