<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Oops, forgot to reply to all.<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Samuel Crow <samuraileumas@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> Joseph Klumpp <jklumpp0@gmail.com><br><b><span style="font-weight: bold;">Sent:</span></b> Wed, October 14, 2009 10:12:45 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] GlobalValue.h:116 error<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><span><span><a target="_blank" href="http://llvm.org/docs/GettingStarted.html#brokengcc">http://llvm.org/docs/GettingStarted.html#brokengcc</a> indicates that that version of G++ will only compile properly using -O0 (optimization disabled).</span></span><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Joseph Klumpp <jklumpp0@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, October 14, 2009 7:31:56
AM<br><b><span style="font-weight: bold;">Subject:</span></b> [LLVMdev] GlobalValue.h:116 error<br></font><br>
When I attempt to follow any tutorial for llvm and add the `llvm-config --cxxflags --ldflags --libs all` line to my GXX_FLAGS, g++ chokes on llvm/GlobalValue.h, complaining of an invalid cast from int to llvm::GlobalValue::LinkageTypes. I receive this error under both Red Hat and Ubuntu and the version of G++ I am using is 4.1.2. <div>
<br></div><div>Thanks in advance,</div><div>Jared</div>
</div></div></blockquote></div><br>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div></blockquote></div><br>
</body></html>