<span class="Apple-style-span" style="font-size: large;">hi,</span><div><span class="Apple-style-span" style="font-size: large;">   I wish to write a pass in code::blocks on windows.  My environment is that I have copyed </span><a href="http://llvm.org/releases/2.6/llvm-2.6-x86-mingw32.tar.bz2"><span class="Apple-style-span" style="font-size: large;">LLVM Binaries for Mingw32/x86</span></a><span class="Apple-style-span" style="font-size: large;"> and </span><a href="http://llvm.org/releases/2.6/llvm-gcc-4.2-2.6-x86-mingw32-tar.bz2"><span class="Apple-style-span" style="font-size: large;">LLVM-GCC 4.2 Front End 
Binaries for Mingw32/x86</span></a><span class="Apple-style-span" style="font-size: large;"> to mingw ,but I can't build the llvm source in mingw.  So I can use some llvm tools,such as llvm-gcc,on comand line of windows. </span></div>
<div><span class="Apple-style-span" style="font-size: large;">   However, I can't build a pass in code::blocks while I have include the 'include' floder of llvm source. And it warns as follow.</span></div><div>
C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h|17|error: llvm/System/DataTypes.h: No such file or directory|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Intrinsics.h|40|error: llvm/Intrinsics.gen: No such file or directory|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h||In function 'bool llvm::isInt(int64_t)':|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h|38|error: there are no arguments to 'INT64_C' that depend on a template parameter, so a declaration of 'INT64_C' must be available|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h|38|note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h|38|error: there are no arguments to 'INT64_C' that depend on a template parameter, so a declaration of 'INT64_C' must be available|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h||In function 'bool llvm::isUInt(uint64_t)':|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\MathExtras.h|57|error: there are no arguments to 'UINT64_C' that depend on a template parameter, so a declaration of 'UINT64_C' must be available|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Module.h|269|error: expected ';' before 'END_WITH_NULL'|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Module.h|273|error: expected ';' before 'END_WITH_NULL'|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\DerivedTypes.h|260|error: expected ';' before 'END_WITH_NULL'|</div><div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Intrinsics.h|42|error: expected identifier before ',' token|</div>
<div>C:\llvm\llvm-2.8\llvm-2.8\include\llvm\Support\CommandLine.h|349|error: expected initializer before 'values'|</div><div>\CodeSurfer\new_llvm\PredictIns.cpp||In member function 'virtual bool<unnamed>::PredictIns::runOnModule(llvm::Module&)':|</div>
<div>\CodeSurfer\new_llvm\PredictIns.cpp|61|warning: unused variable 'p1'|</div><div>\CodeSurfer\new_llvm\PredictIns.cpp|96|warning: unused variable 'brbtuser'|</div><div>\CodeSurfer\new_llvm\PredictIns.cpp|131|warning: no return statement in function returning non-void|</div>
<div>||=== Build finished: 10 errors, 3 warnings ===|</div><div>    <span class="Apple-style-span" style="font-size: large;">I consider the reason is that I doun't build the llvm source. How should I build the llvm source! </span></div>
<div><span class="Apple-style-span" style="font-size: large;">   Thanks!</span></div><div><span class="Apple-style-span" style="font-size: large;">                                                                                                                                                                   Tang</span></div>
<div><span class="Apple-style-span" style="font-size: large;"> </span></div>