Opened 11 years ago

Closed 9 years ago

#6724 closed Bugs (fixed)

missing BOOST_HAS_STDINT_H for PGI

Reported by: olli Owned by: Beman Dawes
Milestone: To Be Determined Component: config
Version: Boost Development Trunk Severity: Problem
Keywords: BOOST_HAS_STDINT_H PGI stdint.h Cc: Noel Belcourt

Description

file boost/config/compilers/pgi.h does not define BOOST_HAS_STDINT_H and therefore boost/cstdint.hpp does not include stdint.h even PGI has one

Change History (3)

comment:1 by Beman Dawes, 11 years ago

Status: newassigned

BOOST_HAS_STDINT_H is defined by boost/config/suffix.hpp if defined(STDC_VERSION) && (STDC_VERSION >= 199901), by boost/config/posix_features.hpp if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200100), or (very unusually) by a boost/config/stdlib/ header.

This code seems to be working OK, see http://tinyurl.com/7mcz249 and scan down to the Boost section of the config_info report for the PGI compiler at Sandia.

So if you have a problem with BOOST_HAS_STDINT_H not being defined, we will need to know much more about your configuration.

Thanks,

--Beman

comment:2 by olli, 11 years ago

system: x86_64, 64bit linux, pgcc 12.2

using uintptr_t/intptr_t in cpp with include of boost/cstdint.hpp failes because stdint.h (PGI defines uintptr_t/intpr_t in this header) is not included by boost/cstdint.hpp (missing BOOST_HAS_STDINT_H) hope that helps, Oliver

comment:3 by John Maddock, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [85138]) Define BOOST_HAS_STDINT_H for PGI on Linux. Fixes #6724.

Note: See TracTickets for help on using tickets.