Closed Quuxplusone closed 14 years ago
Bugzilla Link | PR890 |
Status | RESOLVED INVALID |
Importance | P normal |
Reported by | Mycroft Holmes (hp48gx@gmail.com) |
Reported on | 2006-08-29 09:49:06 -0700 |
Last modified on | 2010-02-22 12:51:28 -0800 |
Version | 1.8 |
Hardware | Macintosh MacOS X |
CC | llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The problem is that you're linking with "cc" which doesn't link in the c++
runtime library. Try linking with
"llvm-g++ hello.c".
-Chris
Chris, shouldn't this be marked as resolved/invalid?
Sure. Mycroft, if the solution doesn't work for you, please reopen.
-Chris
So the converted C file still needs the C++ library... I suggest to mention this explicitly in the FAQ
file:///llvm/vm/docs/llvm/html/FAQ.html#translatec++
I have a plain C compiler (and no C++ library).
I updated it with high-level instructions on how to use libstdc++ (or any other
c++ lib):
http://llvm.org/docs/FAQ.html#translatec++
Thanks,
-Chris