Here' what I did:
Now I can't compile the following source:
The error message I get is:
I'm using an Intel Core 2 Duo Mac mini running Snow Leopard 10.6.2 and Xcode 3.2.1. I've tried including all the standard c++ library headers and making sure the search paths are correct. All my attempts have failed and I don't know what I'm doing wrong. Any help will be highly appreciated.
- Downloaded the llvm 2.6 trunk from subversion using "svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm"
- Configured with options "./configure --enable-optimized --enable-targets=x86_64"
- Compiled it with "make -j2"
- Installed it with "sudo make install"
Now I can't compile the following source:
Code:
//
// main.cpp
//
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Support/IRBuilder.h"
int main(void)
{
return 0;
}
The error message I get is:
# error "Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h"
I'm using an Intel Core 2 Duo Mac mini running Snow Leopard 10.6.2 and Xcode 3.2.1. I've tried including all the standard c++ library headers and making sure the search paths are correct. All my attempts have failed and I don't know what I'm doing wrong. Any help will be highly appreciated.