[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-users
Subject:    [Boost-users] =?utf-8?q?Using_Boost_in_CLR_Class?=
From:       임성준 via Boost-users <boost-users () lists ! boost ! org>
Date:       2024-01-09 6:52:58
Message-ID: c6749c350bb51f8bdd8a9197dab11aa () cweb016 ! nm ! nfra ! io
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hello,

I have question about using Boost.

I'm trying to using boost in clr class of Visual Studito 2022

When I build the project, I got following error

Error C1189 #error:  "This library now requires a C++11 or later compiler - this \
message was generated as a result of BOOST_NO_CXX11_REF_QUALIFIERS being set" \
ClassLibrary2 C:\Users\bussly\source\repos\ClassLibrary2\packages\boost.1.84.0\lib\native\include\boost\multiprecision\detail\check_cpp11_config.hpp \
34 Error (active) E0035 #error directive: "This library now requires a C++11 or later \
compiler - this message was generated as a result of BOOST_NO_CXX11_REF_QUALIFIERS \
being set" ClassLibrary2 \
C:\Users\bussly\source\repos\ClassLibrary2\packages\boost.1.84.0\lib\native\include\boost\multiprecision\detail\check_cpp11_config.hpp \
58

Even I didn't make any code, just add an include boost header.

Following is the scenario of what I did

- Visual Studio 2022
- Create new project 
    -> CLR Class Library(.Net Framework)
- Install NuGet Package
    -> boost 1.84.0
- Add include boost 
    -> #include "boost/geometry.hpp"
- Build solution
- Error 


and following is properties of my project
- Platform Toolset: Visual Studio 2022(v143)
- C++ Language Standard: ISO C++ 20 Standard(/std:c++20) 
- C Language Standard: Default(Legacy MSVC)

I tried with C++ 14 and C++ 17 also, but failed.

Can I get any solution for this?

Thank you.


[Attachment #5 (text/html)]

<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div \
style="font-size:14px; font-family:Gulim,굴림,sans-serif;"><div \
style="font-size:14px; \
font-family:Gulim,굴림,sans-serif;">Hello,<div><br></div><div>I have question about \
using Boost.</div><div><br></div><div>I'm trying to using boost in clr class of \
Visual Studito 2022</div><div><br></div><div>When I build the project, I got \
following error</div><div><br></div><div><span>Error<span style="white-space: \
pre;">	</span>C1189<span style="white-space: pre;">	</span>#error: &nbsp;"This \
library now requires a C++11 or later compiler - this message was generated as a \
result of BOOST_NO_CXX11_REF_QUALIFIERS being set"<span style="white-space: \
pre;">	</span>ClassLibrary2<span style="white-space: \
pre;">	</span>C:\Users\bussly\source\repos\ClassLibrary2\packages\boost.1.84.0\lib\native\include\boost\multiprecision\detail\check_cpp11_config.hpp<span \
style="white-space: pre;">	</span>34<span style="white-space: \
pre;">	</span></span></div><div><span>Error (active)<span style="white-space: \
pre;">	</span>E0035<span style="white-space: pre;">	</span>#error directive: "This \
library now requires a C++11 or later compiler - this message was generated as a \
result of BOOST_NO_CXX11_REF_QUALIFIERS being set"<span style="white-space: \
pre;">	</span>ClassLibrary2<span style="white-space: \
pre;">	</span>C:\Users\bussly\source\repos\ClassLibrary2\packages\boost.1.84.0\lib\native\include\boost\multiprecision\detail\check_cpp11_config.hpp<span \
style="white-space: pre;">	</span>58<span style="white-space: \
pre;">	</span></span></div><div><br></div><div>Even I didn't make any code, just add \
an include boost header.</div><div><br></div><div>Following is the scenario of what I \
did</div><div><br></div><div>- Visual Studio 2022</div><div>- Create new \
project&nbsp;</div><div>&nbsp; &nbsp; -&gt; CLR Class Library(.Net \
Framework)</div><div>- Install NuGet Package</div><div>&nbsp; &nbsp; -&gt; boost \
1.84.0</div><div>- Add include boost&nbsp;</div><div>&nbsp; &nbsp; \
-&gt;&nbsp;#include "boost/geometry.hpp"</div><div></div><div>- Build \
solution</div><div>- Error&nbsp;</div><div><br></div><div><br></div><div>and \
following is properties of my project</div><div>- Platform Toolset: Visual Studio \
2022(v143)</div><div>- C++ Language Standard: ISO C++ 20 \
Standard(/std:c++20)&nbsp;</div><div>- C Language Standard: Default(Legacy \
MSVC)</div><div><br></div><div>I tried with C++ 14 and C++ 17 also, but \
failed.</div><div><br></div><div>Can I get any solution for \
this?</div><div><br></div><div>Thank you.<br><br></div></div>

</div></body></html><table style='display:none'><tr><td><img \
src="https://mail.naver.com/readReceipt/notify/?img=YsFSMBI8brmrMqmsW4JGFqtlMqK9KziSFx \
J4azivpACCaxulFr3CMouwM6JgMX%2B0MogwFSl5WLl5pNiC740ThoRSWreq%2BV99brkZbdIn1BFdbZlSWreq%2BVlTb4b%3D.gif" \
border="0"/></td></tr></table>



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic