BOOST error reported when configuring pcl1.31 version in vs2022

After the configuration is complete, enter the program to write the following code:

 When it is not running, the following error will be reported:

 After checking many solutions on the Internet, I couldn’t find the reason. Finally, according to the error E0020, to find the reason, it can be roughly guessed that the preprocessor definition is missing or something is wrong.

Looking at the preprocessor definition, it can be found that BOOST_PP_IIF_BOOST_PP_BOOL_ is not defined; this symbol is a macro in the boost preprocessor library for conditional judgment, and the value is 0 or 1.

So here we enter: BOOST_PP_IIF_BOOST_PP_BOOL_=1, as follows:

 After entering this, you can find that the original error report has increased, as follows:

It doesn't matter, turn off vs, then restart it can be solved and found that it can be used normally:

 

 

Guess you like

Origin blog.csdn.net/weixin_67615387/article/details/130915402