[petsc-dev] clang warning, 64bit indices

Jed Brown jed at jedbrown.org
Thu Mar 10 04:15:06 CST 2016


Satish Balay <balay at mcs.anl.gov> writes:
> #if defined(PETSC_HAVE_STDINT_H)
>   scanf(format for  int64_t);

Something is funny.

http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2016/03/09/configure_next_arch-mswin-cxx-cmplx_ps3.log

In SOWING configure:

checking for inttypes.h... yes
checking for stdint.h... yes

But in PETSc configure:

C:\cygwin\tmp\PE00A4~1\PETSC~1.CON\conftest.cpp(3) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
Possible ERROR while running compiler: exit code 512


Does stdint.h exist or not?

> #elif (PETSC_SIZEOF_LONG_LONG == 8)
>   scanf(format for long long);
> #elif defined(PETSC_HAVE___INT64)
>    scanf(format for __int64 - aka windows);
> #endif

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160310/4019ff74/attachment.sig>


More information about the petsc-dev mailing list