Open Quuxplusone opened 13 years ago
Bugzilla Link | PR9204 |
Status | REOPENED |
Importance | P normal |
Reported by | Minjang Kim (art.oriented@gmail.com) |
Reported on | 2011-02-12 00:57:29 -0800 |
Last modified on | 2013-09-19 23:01:38 -0700 |
Version | trunk |
Hardware | PC Windows NT |
CC | geek4civic@gmail.com, llvm-bugs@lists.llvm.org, p_hampson@wargaming.net |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
To reproduce, build clang on Windows with Visual Studio 2010 using the
instructions at http://clang.llvm.org/get_started.html, then compile this
program:
class A {
public:
~A() { }
} a;
int main()
{
return 0;
}
the output:
c:\> clang++ t.cpp
t-031021.o : error LNK2019: unresolved external symbol ___dso_handle referenced
in function ___cxx_global_var_init
t-031021.o : error LNK2019: unresolved external symbol ___cxa_atexit referenced
in function ___cxx_global_var_init
a.out : fatal error LNK1120: 2 unresolved externals
clang++: error: linker command failed with exit code 1120 (use -v to see
invocation)
Sorry, closed wrong bug.