question about compile the boost head file.
19 Aug
2022
19 Aug
'22
8:08 a.m.
hi anybody, I meet a problem when I try to compile the following program. #include <boost\exception\info.hpp> void main() { return; } The compile environment is Microsoft Visual Studio Community 2022 (64 位) - ver. 17.2.6.Compile error information is that C2259 “boost::exception_detail::error_info_container_impl”: cannot instantiate abstract class.I try many Boost versions,e.g.,boost 79,boost 65,boost64,boost60. They all give errors. Anybody can give me some suggestions? Best regards, zhiyong --------------------------------
20 Aug
20 Aug
8:43 p.m.
На сб, 20.08.2022 г. в 10:37 ч. xiongzhiyong via Boost-users <
boost-users@lists.boost.org> написа:
> #include <boost\exception\info.hpp>
>
> void main()
> {
> return;
> }
>
> The compile environment is Microsoft Visual Studio Community 2022 (64 位)
- ver. 17.2.6.
> Compile error information is that C2259
“boost::exception_detail::error_info_container_impl”: cannot instantiate
abstract class.
> I try many Boost versions,e.g.,boost 79,boost 65,boost64,boost60. They
all give errors.
I can't reproduce this with msvc versions available on godbolt:
https://godbolt.org/z/E8vYWTPf6
Can you provide a complete error log, including source file and line of the
error?
1205
Age (days ago)
1206
Last active (days ago)
1 comments
2 participants
participants (2)
-
Emil Dotchevski -
zyx_xzy@sina.com