Displaying 3 results from an estimated 3 matches for "__ostream_insert".
2012 Mar 02
0
[LLVMdev] (Newbie) Using lli with clang++?
> $ clang++ -O3 -emit-llvm hello.cpp -c -o hello.bc
> $ lli hello.bc
> LLVM ERROR: Program used external function
> '_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l'
> which could not be resolved!
What version of LLVM and Clang you are using? I have no such problem
on my machine.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiw...
2009 Dec 08
4
[LLVMdev] A question about 'llc -march=c'
...‘main’:
testcc.cbe.c:356: warning: return type of ‘main’ is not ‘int’
/tmp/ccDcoA7R.o: In function `main':
testcc.cbe.c:(.text+0x33): undefined reference to `std::cout'
testcc.cbe.c:(.text+0x38): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
testcc.cbe.c:(.text+0x42): undefined reference to `std::cout'
testcc.cbe.c:(.text+0x47): undefined reference to `std::basic_ostream<char, std::char_traits<...
2012 Mar 02
5
[LLVMdev] (Newbie) Using lli with clang++?
...0;
}
When I compile directly to an executable with the following command, all is
well:
$ clang++ -O3 hello.cpp -o hello
But when I try to produce a bitcode file, I get an error:
$ clang++ -O3 -emit-llvm hello.cpp -c -o hello.bc
$ lli hello.bc
LLVM ERROR: Program used external function
'_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l'
which could not be resolved!
I'm running this on x86_64. I'd appreciate any help about what I'm doing
wrong.
Thanks!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm...