Re: [Boost-bugs] [Boost C++ Libraries] #11301: Boost 1.58 compile error with atomic when plain C++ is used

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11301: Boost 1.58 compile error with atomic when plain C++ is used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-14 10:22:27


#11301: Boost 1.58 compile error with atomic when plain C++ is used
-------------------------------+--------------------------
  Reporter: edd@… | Owner: timblechmann
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: atomic
   Version: Boost 1.58.0 | Severity: Showstopper
Resolution: worksforme | Keywords:
-------------------------------+--------------------------

Comment (by anonymous):

 Thanks for the quick follow-up. I am glad that it is not a general issue
 in Boost; it is definitely an issue on my side with this "BH" package I
 construct for R (via use of bcp).

 Note that the bug only manifests itself ''without -std=c++11''. If you set
 that, all is good.

 Here is complete file:

 {{{
 // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode:
 nil; compile-command: "g++ -I/usr/local/lib/R/site-library/BH/include
 boost_atomic_test.cpp -o boost_atomic_test; ./boost_atomic_test"; -*-


 #include <iostream>
 #include <boost/math/special_functions/gamma.hpp>

 int main(int argc, char *argv[]) {
     std::cout << "Value: " << boost::math::lgamma(10.0) << std::endl;

 }
 }}}


 and if I M-x compile that I get

 Compilation started at Thu May 14 05:12:04


 {{{
 g++ -I/usr/local/lib/R/site-library/BH/include boost_atomic_test.cpp -o
 boost_atomic_test; ./boost_atomic_test
 In file included from /usr/local/lib/R/site-
 library/BH/include/boost/atomic/atomic.hpp:19:0,
                  from /usr/local/lib/R/site-
 library/BH/include/boost/atomic.hpp:12,
                  from /usr/local/lib/R/site-
 library/BH/include/boost/math/special_functions/detail/bernoulli_details.hpp:42,
                  from /usr/local/lib/R/site-
 library/BH/include/boost/math/special_functions/bernoulli.hpp:16,
                  from /usr/local/lib/R/site-
 library/BH/include/boost/math/special_functions/gamma.hpp:35,
                  from boost_atomic_test.cpp:4:
 /usr/local/lib/R/site-
 library/BH/include/boost/atomic/capabilities.hpp:22:63: fatal error:
 boost/atomic/detail/caps_gcc_atomic.hpp: No such file or directory
  #include BOOST_ATOMIC_DETAIL_HEADER(boost/atomic/detail/caps_)
                                                                ^

 }}}

 Dirk

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11301#comment:2>
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:18 UTC