This seems like it should be simple, but I've run into quite a few problems with this. I first tried using cout from <iostream.h>, only to find out that llvm does not seem to support it. Then I tried using raw_ostream and the outs function, and now I'm getting an unresolved external error: <br>
"LLVM ERROR: Program used external function '_ZN4llvm4outsEv' which ciuld not be resolved!"<br>Stack dump:<br>0.   Program arguments: lli test.bc<br>1.   Running pass: 'x86 Machine Code Emitter' on function '@main'<br>
<br>To get the compiler to recognize outs, I had to modify the includes in raw_ostream.h to find a couple of files properly.<br><br>Here is the code I'm using:<br><br>#include "llvm/include/llvm/Support/raw_ostream.h"<br>
<br>int main ()<br>{<br>    llvm::outs() << "HELLO WORLD";<br>}<br><br>I've gotten code to run just fine without using any library functions.<br><br>Any help would be much appreciated!<br>