<div>Sorry.</div><div>bitreader may not be the replacement of bcreader</div><div>niuq@niuq:~/Programming/llvm/MyLli$ llvm-config --libs engine bcreader scalaropts</div><div>llvm-config: unknown component name: bcreader</div>
<div><br></div><div>niuq@niuq:~/Programming/llvm/MyLli$ g++ -o mylli.x `llvm-config --cxxflags --ldflags` mylli.o `llvm-config --libs engine bitreader scalaropts`</div><div>mylli.o: In function `global constructors keyed to mylli.cpp':</div>
<div>mylli.cpp:(.text+0x991): undefined reference to `llvm::createPBQPRegisterAllocator()'</div><div>mylli.cpp:(.text+0xa01): undefined reference to `LLVMLinkInInterpreter'</div><div>mylli.o: In function `main':</div>
<div>mylli.cpp:(.text+0xb0e): undefined reference to `llvm::MemoryBuffer::getFileOrSTDIN(llvm::StringRef, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, long, stat*)'</div><div>
collect2: ld returned 1 exit status</div><div><br></div><div>Anything wrong with my configuration? Why no bcreader components?</div><div class="gmail_quote">On Sat, Mar 5, 2011 at 2:04 AM, Qingpeng Niu <span dir="ltr"><<a href="mailto:niuqingpeng@gmail.com">niuqingpeng@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><pre style="font-size:10pt;font-family:Arial, Helvetica">Hi</pre><pre style="font-size:10pt;font-family:Arial, Helvetica">
This <span style="font-family:Arial, Helvetica;color:rgb(0, 0, 0);white-space:normal;font-size:medium"><pre style="font-size:10pt;display:inline !important"><a href="http://llvm.org/cmds/llvm-config.html" target="_blank">llvm-config --libs engine bcreader scalaropts</a> in website</pre>
</span></pre><pre style="font-size:10pt;font-family:Arial, Helvetica"><a href="http://llvm.org/cmds/llvm-config.html" target="_blank">http://llvm.org/cmds/llvm-config.html</a></pre>
<pre style="font-size:10pt;font-family:Arial, Helvetica">But actually bcreader components is not there anymore. The new name of it is bitreader. </pre><pre style="font-size:10pt;font-family:Arial, Helvetica">I thinks this webpage may need to update and also. If i do "llvm-config --help". It will also show wrong component name in examples</pre>

<pre style="font-size:10pt;font-family:Arial, Helvetica">g++ `llvm-config --cxxflags` -o HowToUseJIT.o -c HowToUseJIT.cpp</pre></div>g++ `llvm-config --ldflags` -o HowToUseJIT <span style="font-family:monospace;font-size:14px;white-space:pre-wrap">HowToUseJIT.o</span> `llvm-config --libs engine bitreader scalaropts`<div>

<br>-- <br>Qingpeng Niu<br>Department of Computer Science and Engineering at OSU <br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Qingpeng Niu<br>Department of Computer Science and Engineering at OSU <br>