Yes, this is a piece of included hierarchy error is show. Thanks in advance 1>Note: including file: E:\DentalCad2.0-x64-vs2022\Common\Lib\vcglib\vcg\space\deprecated_point3.h 1>Note: including file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\assert.h 1>Note: including file: E:\boost_1_78_0\boost/archive/binary_iarchive.hpp 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\istream 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\ostream 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\ios 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocnum 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\streambuf 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xiosbase 1>Note: including file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\share.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\system_error 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\__msvc_system_error_abi.hpp 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\cerrno 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\stdexcept 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xcall_once.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xerrc.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\atomic 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xthreads.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xtimec.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\ctime 1>Note: including file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\time.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocale 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\memory 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xfacet 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocinfo 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\__msvc_xlocinfo_types.hpp 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\clocale 1>Note: including file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\locale.h 1>Note: including file: E:\boost_1_78_0\boost/archive/binary_iarchive_impl.hpp 1>Note: including file: E:\boost_1_78_0\boost/archive/basic_binary_iprimitive.hpp 1>Note: including file: E:\boost_1_78_0\boost/assert.hpp 1>Note: including file: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\assert.h 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\locale 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocbuf 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocmes 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xlocmon 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\xloctime 1>Note: including file: E:\boost_1_78_0\boost/config.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/user.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/select_compiler_config.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/compiler/visualc.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/pragma_message.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/helper_macros.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/select_stdlib_config.hpp 1>Note: including file: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\version 1>Note: including file: E:\boost_1_78_0\boost/config/stdlib/dinkumware.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/select_platform_config.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/platform/win32.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/suffix.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/cxx_composite.hpp 1>Note: including file: E:\boost_1_78_0\boost/config/detail/cxx_composite.hpp 1>Note: including file: E:\boost_1_78_0\boost/cstdint.hpp 1>Note: including file: E:\boost_1_78_0\boost/serialization/throw_exception.hpp 1>E:\boost_1_78_0\boost/serialization/throw_exception.hpp(30,14): error C2039: 'throw_exception': is not a member of 'boost' 1>E:\boost_1_78_0\boost/serialization/throw_exception.hpp(24): message : see declaration of 'boost' Il giorno mar 11 gen 2022 alle ore 15:54 John McCabe via Boost-users < boost-users@lists.boost.org> ha scritto:
On 11/01/2022 10:22, Alessio Mochi via Boost-users wrote:
Hello, I can't resolve my exception when I compile my qt project with visual studio 2022.
Error C2039 'throw_exception': is not a member of 'boost' DentalCad E:\boost_1_78_0\boost\serialization\throw_exception.hpp 30
I tried a compile a small example and work correctly without exception. I don't understand how solve the problem. Have you a suggest?
That's the sort of error you normally get if you've included a header where the boost namespace is declared, but the header file where throw_exception is declared has not been included.
Does Visual Studio have an include browser where you can see what the hierarchy of included headers are?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users