This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Cliff,
I'm sorry, but I gave you the wrong test-code to compile. Instead of
referencing the gcc(1) header-files, the test-code needs to reference
the icc(1) header-files. I suspect you re-executed the configure(1)
script using the gcc(1) compiler; consequently, the "port/misc/limits.h"
file that you sent referenced the gcc(1) header-files.
Lets try again with test-code that references the icc(1) <limits.h> file
in the same way that the "port/misc/limits.h" file does. Please try this:
echo '#include "///opt/intel_cc_80/include/limits.h"' >conftest.c
echo 'int int_max = INT_MAX;' >>conftest.c
icc -c conftest.c
Regards,
Steve Emmerson
------- Original Message
Date: Tue, 15 Feb 2005 10:41:04 -0500
From: Cliff Liu <address@hidden>To: Steve Emmerson <steve@uni
data.ucar.edu>
Subject: Re: 20050210: Building udunits on Altix IA64 using icc(1): <limits.h>
On Mon, 14 Feb 2005, Steve Emmerson wrote:
> OK. Try this:
>
> $ echo '#include "///usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/include/limi
ts.h"' >conftest.c
> $ echo 'int int_max = INT_MAX;' >>conftest.c
> $ icc -c conftest.c
>
[root@thunder cliff]# cat conftest.c
#include "///usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/include/limits.h"
int int_max = INT_MAX;
[root@thunder cliff]# icc -c conftest.c
[root@thunder cliff]#
This still has no errors.
Thanks,
Cliff
------- End of Original Message