[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20050210: Building udunits on Altix IA64 using icc(1): <limits.h>



Cliff,

>Date: Mon, 14 Feb 2005 16:16:26 -0500 (EST)
>From: Cliff Liu <address@hidden>
>Organization: NASA
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20050210: Building udunits on Altix IA64

The above message contained the following:

> Please ignore my previous email.   I'm not completely sure where
> the problem was and Intel doesn't seem to think it's their problem 
> either.  Please see below that the test program compiled without error.
> 
> Cliff
> 
[snip]
> > Please send me the output from the following commands:
> > 
> >     $ echo '#include <limits.h>' >conftest.c
> >     $ echo 'int int_max = INT_MAX' >>conftest.c
> >     $ icc -c conftest.c
> 
> The above generate no errors after I appended ";" to "int...".
> 
> > Also, please send me the file "port/misc/limits.h".
> 
> #cat /usr/local/src/udunits-1.12.2/src/port/misc/limits.h 
> 
> [root@thunder cliff]# cat 
> /usr/local/src/udunits-1.12.2/src/port/misc/limits.h
> /* port/misc/limits.h.  Generated automatically by configure.  */
> /*
>  * $Id: limits.h.in,v 1.2 1997/01/22 17:16:50 steve Exp $
>  */
>                                                                               
>    
>                                                                               
>    
> #ifndef UD_limits_h
> #define UD_limits_h
>                                                                               
>    
>                                                                               
>    
> #define UD_SYSTEM_LIMITS_H      
> "///usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/include/limits.h"

OK.  Try this:

    $ echo '#include 
"///usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/include/limits.h"' >conftest.c
    $ echo 'int int_max = INT_MAX;' >>conftest.c
    $ icc -c conftest.c

Regards,
Steve Emmerson