Hello All,<div><br></div><div>I build source code of Ocelot[<a href="http://code.google.com/p/gpuocelot/">http://code.google.com/p/gpuocelot/</a>]. It using LLVM dependency of Ocelot.  llvm-config get cppflags represent as below in order to build with Ocelot.</div>
<div><br></div><div>./llvm-config --cppflags<br>-I/home/chatsiri/workspacecpp/llvm/include -I/home/chatsiri/workspacecpp/llvm/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS</div>
<div><br></div><div>Why  DataType.h line 49 through  error  as  #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"</div><div><br><div>g++ -o .release_build/ocelot/ir/implementation/ExternalFunctionSet.os -c -O2 -Wall -Werror -std=c++0x "-I/home/chatsiri/workspacecpp/llvm/include -I/home/chatsiri/workspacecpp/llvm/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" -fPIC -I. -I/home/chatsiri/workspacecpp/boost-truck -I.release_build/:/home/chatsiri/workspacecpp/glew-1.7.0/include -I:/home/chatsiri/workspacecpp/glew-1.7.0/include -I/home/chatsiri/workspacecpp/glew-1.7.0/include -I/home/chatsiri/workspacecpp/llvm/include -I.release_build -I. ocelot/ir/implementation/ExternalFunctionSet.cpp</div>
<div>In file included from /home/chatsiri/workspacecpp/llvm/include/llvm/Support/type_traits.h:20,</div><div>                 from /home/chatsiri/workspacecpp/llvm/include/llvm/ADT/StringRef.h:13,</div><div>                 from /home/chatsiri/workspacecpp/llvm/include/llvm/PassRegistry.h:20,</div>
<div>                 from /home/chatsiri/workspacecpp/llvm/include/llvm/PassSupport.h:25,</div><div>                 from /home/chatsiri/workspacecpp/llvm/include/llvm/Pass.h:372,</div><div>                 from /home/chatsiri/workspacecpp/llvm/include/llvm/PassManager.h:20,</div>
<div>                 from ocelot/ir/implementation/ExternalFunctionSet.cpp:26:</div><div>/home/chatsiri/workspacecpp/llvm/include/llvm/Support/DataTypes.h:49: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"</div>
<div>/home/chatsiri/workspacecpp/llvm/include/llvm/Support/DataTypes.h:53: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"</div><div>scons: *** [.release_build/ocelot/ir/implementation/ExternalFunctionSet.os] Error 1</div>
<div>Build failed</div><div><br></div><div>Best Regards, </div><div>Chatsiri Rattana</div><div><br></div><br clear="all"><div><br></div>-- <br>:--------------------------------------------------------<br><a href="http://about.me/chatsiri.ratana" target="_blank">http://about.me/chatsiri.ratana</a><br>

</div>