<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">Hello all, <br>
<br>
I'm trying to include and use the Module.h class into my project <br>
I get these 5 errors when I attempt to compile a cpp file that has #include <llvm/Module.h> (through eclipse)<br>
<br>
Description    Resource    Path    Location    Type<br>
#error "Must #define __STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"    template        line 49, external location: /usr/lib/llvm-2.8/include/llvm/System/DataTypes.h    C/C++ Problem<br>
<br>
Description    Resource    Path    Location    Type<br>
#error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"    template        line 45, external location: /usr/lib/llvm-2.8/include/llvm/System/DataTypes.h    C/C++ Problem<br>
<br>
Description    Resource    Path    Location    Type<br>
make: *** [src/template.o] Error 1    template        line 0    C/C++ Problem<br>
<br>
Description    Resource    Path    Location    Type<br>
there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available    template        line 38, external location: /usr/lib/llvm-2.8/include/llvm/Support/MathExtras.h    C/C++ Problem<br>
<br>
Description    Resource    Path    Location    Type<br>
there are no arguments to ‘UINT64_C’ that depend on a template parameter, so a declaration of ‘UINT64_C’ must be available    template        line 57, external location: /usr/lib/llvm-2.8/include/llvm/Support/MathExtras.h    C/C++ Problem<br>
 <br>
<br>
<br>
Here's what I've done<br>
Working in ubuntu,<br>
installed llvm-gcc using "sudo apt-get install llvm-gcc-4.2" because I can't seem to understand the get started documentation...<br>
installed eclipse and its CDT<br>
in eclipse, added in the project properties to include the path for headers /usr/lib/llvm-2.8/include, and the path for libraries /usr/lib/llvm/lib<br>
<br>
Am I missing something ? <br>
I am sort of a beginner when it comes to linux and software development in linux..<br>
<br>
Thanks !<br>
Zaid<br>
</div>
</div>
</body>
</html>