From: Chris Lattner
Date: Thu, 31 Aug 2006 04:26:31 +0000 (+0000)
Subject: Add a note about C++ -> C with libstdc++
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b495fb0e8c856f3f4494a125bbc369248e2e3197;p=oota-llvm.git
Add a note about C++ -> C with libstdc++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29993 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/FAQ.html b/docs/FAQ.html
index 223e2b4346f..2dffd203ffd 100644
--- a/docs/FAQ.html
+++ b/docs/FAQ.html
@@ -541,8 +541,8 @@ C++ support for a processor that does not otherwise have a C++ compiler.
or:
- llvm-g++ a.cpp -c
- llvm-g++ b.cpp -c
+ llvm-g++ a.cpp -c
+ llvm-g++ b.cpp -c
llvm-g++ a.o b.o -o program
@@ -566,6 +566,15 @@ If you want/need it for a certain program, you can enable it by passing
use setjmp/longjmp to implement exception support that is correct but
relatively slow.
+
+Also note: this specific sequence of commands won't work if you use a
+function defined in the C++ runtime library (or any other C++ library). To
+access an external C++ library, you must manually
+compile libstdc++ to LLVM bytecode, statically link it into your program, then
+use the commands above to convert the whole result into C code. Alternatively,
+you can compile the libraries and your application into two different chunks
+of C code and link them.
+