[LLVMdev] bc file only with llvm-gcc3?
Eli Friedman
eli.friedman at gmail.com
Wed Sep 17 16:10:53 PDT 2008
On Wed, Sep 17, 2008 at 3:39 PM, Michael Reichenbach
<michael_reichenbach at freenet.de> wrote:
> program.c will contain some non-human generated code. But it doesn't
> compile with gcc. There is an error, gcc complaints about undefined
> reference to std::cout and such (the code was just a very small example
> with cout).
>
> It hasn't be converted into "C only" code, can you tell me why?
If your code uses the C++ library, you'll need to link it against a
C++ library. That has nothing to do with the language of the code.
-Eli
More information about the llvm-dev
mailing list