|
Boost Users : |
From: John Maddock (jz.maddock_at_[hidden])
Date: 2021-08-16 17:57:49
What architecture are you building for?
These intrinsic headers come from boost/integer/common_factor_rt.hpp and:
#if ((defined(BOOST_MSVC) && (BOOST_MSVC >= 1600)) ||
(defined(__clang__) && defined(__c2__)) || (defined(BOOST_INTEL) &&
defined(_MSC_VER))) && (defined(_M_IX86) || defined(_M_X64))
#include <intrin.h>
#endif
I'm wondering if the check for x86 needs to be applied to the BOOST_MSVC
check as well as the intel one?
John.
> I'm guessing this might be solvable by updating to a newer version of
> boost (currently I'm running ver 1.71.0) but before updating, I
> wondered if there might be something obvious that 'm missing....
>
> I'm building with Visual Studio 2019 and I get a whole bunch of errors
> simply by adding this line to an empty source file:-
>
> Â Â Â Â Â #include "boost/rational.hpp"
>
> It seems to be the same 6 errors but at various different lines - i.e.
> these errors, over & over again:-
>
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(146,19):
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(146,8):
> error C2146: syntax error: missing ';' before identifier '_mm_macc_ps'
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(147,20):
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(147,9):
> error C2146: syntax error: missing ';' before identifier '_mm_macc_pd'
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(148,19):
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> Â Â Â Â Â Visual
> Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\ammintrin.h(148,1):
> error C2086: 'int __m128': redefinition
>
> I just wondered if this might ring a bell with someone? e.g. might
> there be some preprocesser #define that I should've defined? (or a
> #define that I shouldn't be defining...)
>
> Thanks for any suggestions, John
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
-- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net