[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared (firstuse this function)

Chris Lattner sabre at nondot.org
Wed Jul 14 12:49:01 PDT 2004


On Wed, 14 Jul 2004, Henrik Bach wrote:

> >From: John Criswell <criswell at cs.uiuc.edu>
> >Date: Wed, 14 Jul 2004 09:11:03 -0500
> >
> >
> >The DataTypes.h header file is generated by the configure script and placed
> >into your build tree.  My best guess is that your system's header files do
> >not correctly define these macros, so they are missing.
> >
>
> I did a search on the build and source trees, but neither found the
> constant. Anyway, I'll try to find the header file.

The file you need to modify is here:
llvm/include/Support/DataTypes.h.in

There is currently support for building in non-cygwin windows environments
protected by _MSC_VER.  You just need to broaden the scope of the #ifndef
to include internix.

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://nondot.org/sabre/




More information about the llvm-dev mailing list