Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compile error] #if #endif pairs did not match in boost\assert.hpp #29

Open
Bzz2745 opened this issue Oct 4, 2022 · 11 comments
Open

[compile error] #if #endif pairs did not match in boost\assert.hpp #29

Bzz2745 opened this issue Oct 4, 2022 · 11 comments

Comments

@Bzz2745
Copy link

Bzz2745 commented Oct 4, 2022

When I tried to compile PCL(PointCloudLibrary) with the Boost file compiled by myself, the error showed that #if #endif pairs did not match and the error was reported in the assert.hpp file from Boost, so I checked the file in VS2022 and didn't see any error prompt. I have compared the latest version of Boost compiled files, and every line is the same. (Because it is necessary to compile part of the code with NVCC, NVCC always prompts that the *.hpp file of Boost cannot be found. Even though I have completely set it in path and CMake, I changed the include directory to a pure English absolute path, but I think this should not be the reason. ) I hope to get an answer, thank you very much!
My platform: Windows11
Compiler: vs2022 (or vc143) & nvcc (from cuda 11.6)

@mclow mclow transferred this issue from boostorg/boost Oct 4, 2022
@pdimov
Copy link
Member

pdimov commented Oct 4, 2022

What's the actual error you are getting?

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

One more thing,this error didn't appear when I build with VS2019(VC142) and nvcc from CUDA Toolkit11.4

@pdimov
Copy link
Member

pdimov commented Oct 4, 2022

Can you please copy and paste the error, or screenshot it?

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

What's the actual error you are getting?

just #if and #endif not match no more thing

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

Can you please copy and paste the error, or screenshot it?

OK please wait 5min

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

image

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

image

the code just is assert.hpp

@pdimov
Copy link
Member

pdimov commented Oct 4, 2022

I've no idea why this would happen, sorry. It's easy to see that all #ifs in assert.hpp are matched. I took a quick look at PCL's repo, but nothing jumped out at me; it doesn't even include boost/assert.hpp anywhere directly.

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 4, 2022

我不知道为什么会发生这种情况,对不起。很容易看出所有都是匹配的。我快速浏览了一下PCL的存储库,但没有任何东西跳出来。它甚至不包括任何地方直接。#if``assert.hpp``boost/assert.hpp

Yes,I've also tried to delete part of code,but the error still exist,maybe the reason is VS2022......and this is two questions actually,NVCC.exe always shows "can't open file 'assert.hpp',no aush file or directory" even I add boost to path.......Only by changing the include directory to a pure English absolute path can I solve this.....maybe they will be found and then fixed when PCL 1.13(if it use VC143 on windows) released.

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 26, 2022

Now i have already built all parts of pcl,and ensure this error is caused by CUDA,if i build some parts don't use CUDA,it will not appear.but i have no way to solve it. The error "can't open boost/*.hpp"also caused by use CUDA(or some settings is wrong.),which is also not solved.

@Bzz2745
Copy link
Author

Bzz2745 commented Oct 26, 2022

Now i have already built all parts of pcl,and ensure this error is caused by CUDA,if i build some parts don't use CUDA,it will not appear.but i have no way to solve it. The error "can't open boost/*.hpp"also caused by use CUDA(or some settings is wrong.),which is also not solved.

You can find the issue contributed by me in pcl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants