[LLVMdev] LLVM: C++ -> C

Anton Korobeynikov anton at korobeynikov.info
Tue Sep 29 10:03:55 PDT 2009


> C:\...\Temp/ccfREe4x.o:fake:(.text+0xae): undefined reference to 'std::ios_base::Init::Init()'
> C:\...\Temp/ccfREe4x.o:fake:(.text+0xbe): undefined reference to 'std::ios_base::Init::~Init()'
> collect2: ld returned 1 exit status"
> What I've done wrong?
You need to link with C++ standard library. Either use llvm-g++ as
linker, or add -lstdc++

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list