[LLVMdev] including llvm data structures in eclipse
z_alk at live.concordia.ca
z_alk at live.concordia.ca
Thu Jan 20 16:00:49 PST 2011
Hello all,
I'm trying to include and use the Module.h class into my project
I get these 5 errors when I attempt to compile a cpp file that has #include <llvm/Module.h> (through eclipse)
Description Resource Path Location Type
#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
Description Resource Path Location Type
#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
Description Resource Path Location Type
make: *** [src/template.o] Error 1 template line 0 C/C++ Problem
Description Resource Path Location Type
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
Description Resource Path Location Type
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
Here's what I've done
Working in ubuntu,
installed llvm-gcc using "sudo apt-get install llvm-gcc-4.2" because I can't seem to understand the get started documentation...
installed eclipse and its CDT
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
Am I missing something ?
I am sort of a beginner when it comes to linux and software development in linux..
Thanks !
Zaid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110121/12b917f2/attachment.html>
More information about the llvm-dev
mailing list