[LLVMdev] LLVM: C++ -> C

Timo Juhani Lindfors timo.lindfors at iki.fi
Tue Sep 29 10:10:43 PDT 2009

dilas dilas <espiritusantu at mail.ru> writes:
> And after "llvm-gcc C:\llvm_helloCppToC.c -o C:\llvm_helloCppToC.exe"

> C:\...\Temp/ccfREe4x.o:fake:(.text+0xae): undefined reference to 'std::ios_base::Init::Init()'

You are not linking against your C++ standard library which contains
the implementation of std::ios_base::Init. Try using g++ to link the
file (it should link C++ libraries by default).

More information about the llvm-dev mailing list