HowToUseJIT.cpp - file: 'llvm/ADT/iterator': No such file or directory

Hi

I'm trying to compile HowToUseJIT.cpp, but it seems that iterator definition is missing:

--------------------Configuration: HowToUseJIT - Win32 Debug--------------------
Compiling...
HowToUseJIT.cpp
c:\sfu\usr\local\src\llvm\include\llvm\adt\ilist(41) : fatal error C1083: Cannot open include file: 'llvm/ADT/iterator': No such file or directory
Error executing cl.exe.

I've looked and searched for it in the LLVM source folders, but it doesn't seem to be present. Futhermore, I've got the latest cvs sources.

Any suggestions?

Henrik

The header file llvm/ADT/iterator is generated by the configure script.
The source for the file is in include/llvm/ADT/iterator.in. Please make
sure you've updated that directory (ADT). Then, you need to make sure
you've updated to the latest configure script and rerun it to generate
include/llvm/ADT/iterator. Note that if $builddir != $srcdir then you
might miss this generation as it actually builds "iterator" in the
$builddir! Same thing goes for hash_set and hash_map.

Reid.

I'm using scons to generate that files from .in files. I implemented in it the configure check regarding iterators, hash and so on...
something like:

scons: Reading SConscript files ...
Checking for C++ header file windows.h... yes
Checking for C++ type std::hash_map<int, int>... no
Checking for C++ type std::hash_map<int, int>... yes
Checking for C++ type std::hash_set<int>... no
Checking for C++ type std::hash_set<int>... yes
Checking for C++ type std::iterator<int,int,int>... yes
Checking for C++ type std::bidirectional_iterator<int,int>... yes
Checking for C++ type std::forward_iterator<int,int>... yes
Checking for isnan(0.0) in C++ library None... no
Checking for std::isnan(0.0) in C++ library None... no
Checking for _isnan(0.0) in C++ library None... yes
Checking for isinf(0.0) in C++ library None... no
Checking for std::isinf(0.0) in C++ library None... no
Checking for finite(0.0) in C++ library None... no
Checking for _finite(0.0) in C++ library None... yes
scons: done reading SConscript files.
scons: Building targets ...
cl /nologo /TP /EHsc /GR /D__STDC_LIMIT_MACROS /ISTLport-4.6.2\stlport /Illvm\include /Iinclude /Ibuild_vc71\include /c build_vc71\lib\Target\X86\X86TargetMachine.cpp /Fobuild_vc71
\lib\Target\X86\X86TargetMachine.obj

<big snip>

as you can see I was working on nan and isinf, that in VC are _isnan and _finite ... so expect a little patches for them :wink:
Right now is in a very early stage, but I'll post to you when is a little more *mumble* presentable.
Scons requires only python.