[compile error] #if #endif pairs did not match in boost\assert.hpp
- Vorherrschende Sprache
- C++
- Sterne
- 35
- Forks
- 77
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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)
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit der Untersuchung von boost/assert.hpp und reproduziere den gemeldeten Preprocessing-Fehler mit dem angegebenen Setup aus Windows 11, VS2022 oder vc143 und nvcc aus CUDA 11.6. Vergleiche das Include-Pfad- und Preprocessing-Verhalten von NVCC mit dem funktionierenden Fall in Visual Studio; als abgeschlossen gilt die Arbeit, wenn festgestellt wurde, ob die Abweichung in Boost.Assert oder in der Kompilierungsumgebung liegt, und eine reproduzierbare Ursache dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100