Skip to content

Adds import to fix cassert import error#178

Merged
koide3 merged 1 commit into
koide3:masterfrom
Versus7:fix/149-import-error
Jul 16, 2025
Merged

Adds import to fix cassert import error#178
koide3 merged 1 commit into
koide3:masterfrom
Versus7:fix/149-import-error

Conversation

@Versus7

@Versus7 Versus7 commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

While building Iridescence for use on Linux, I came across the same error that 'assert' is not declared in this context.

/iridescence/src/glk/pointcloud_buffer.cpp:120:3: error: ‘assert’ was not declared in this
 scope                                                                                               
  120 |   assert(this->num_points == num_points);                                                    
      |   ^~~~~~                                                                                     
/iridescence/src/glk/pointcloud_buffer.cpp:10:1: note: ‘assert’ is defined in header ‘<cas
sert>; did you forget to ‘#include <cassert>’?                                                      

This PR adds the missing #include directive to fix the compilation error.

Notes

@koide3

koide3 commented Jul 16, 2025

Copy link
Copy Markdown
Owner

Thanks!

@koide3 koide3 merged commit 666d10b into koide3:master Jul 16, 2025
imhutugui pushed a commit to imhutugui/iridescence that referenced this pull request Aug 27, 2025
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

Successfully merging this pull request may close these issues.

error: use of undeclared identifier 'assert'

2 participants