hey guys. Now I am following the "Writing an LLVM Pass", but can't work it out. See what I have done.<br><br>After completing the exact Makefile and source code <tt> under lib/Transforms/Hello</tt>, I typed the command "make" instead of "gmake" , then it generated silently "Hello.o" in Debug. But, next, when I tried to generate "hello.bc" by the command "llvm-g++ -O3 -emit-llvm Hello.cpp -c -o hello.bc", errors arose like that:<br>

<br>In file included from /usr/local/include/llvm/Pass.h:32,<br>                 from Hello.cpp:16:<br>/usr/local/include/llvm/System/DataTypes.h:45:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"<br>

/usr/local/include/llvm/System/DataTypes.h:49:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"<br>In file included from /usr/local/include/llvm/Attributes.h:18,<br>

                 from /usr/local/include/llvm/Argument.h:18,<br>                 from /usr/local/include/llvm/Function.h:24,<br>                 from Hello.cpp:17:<br>/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isInt(int64_t)’:<br>

/usr/local/include/llvm/Support/MathExtras.h:57: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available<br>/usr/local/include/llvm/Support/MathExtras.h:57: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)<br>

/usr/local/include/llvm/Support/MathExtras.h:57: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available<br>/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isUint(uint64_t)’:<br>

/usr/local/include/llvm/Support/MathExtras.h:62: error: there are no arguments to ‘UINT64_C’ that depend on a template parameter, so a declaration of ‘UINT64_C’ must be available<br><br>your any piece of words will be appreciated greatly. Thanks in advance.<br>