[Boost-bugs] [Boost C++ Libraries] #4431: stdint.h not available in CUDA nvcc + visual studio

Subject: [Boost-bugs] [Boost C++ Libraries] #4431: stdint.h not available in CUDA nvcc + visual studio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-14 18:54:50


#4431: stdint.h not available in CUDA nvcc + visual studio
-----------------------------------------------+----------------------------
 Reporter: Sergey Mitsyn <svm@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: config
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: CUDA nvcc stdint.h |
-----------------------------------------------+----------------------------
 The "boost/config/compiler/nvcc.hpp" contains "#define
 BOOST_HAS_STDINT_H", but it looks like stdint.h availability for CUDA nvcc
 is platform-dependent; it is unavailable if nvcc is used with visual
 studio (in my case it is vc9). Thus this fails to compile with nvcc:

 #include "boost/cstdint.hpp"

 Also, AFAIK, nvcc passes all code that is not CUDA-related to the native
 compiler that is g++ on linux and cl on windows. So, it may sound silly,
 but commenting out anything and including
 "boost/config/compiler/visualc.hpp" in nvcc.hpp helps with several other
 compile errors, of course for msvc only.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4431>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC