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

Add missing cassert header #632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SwiftGust
Copy link

Fix build issue error: ‘assert’ was not declared in this scope due to missing header "cassert" in the lidar_scan_impl.h or any included header

/tmp/ouster_ws/src/ouster-ros/ouster-sdk/ouster_client/include/ouster/impl/lidar_scan_impl.h: In function ‘bool ouster::impl::operator==(const ouster::impl::FieldSlot&, const ouster::impl::FieldSlot&)’:
/tmp/ouster_ws/src/ouster-ros/ouster-sdk/ouster_client/include/ouster/impl/lidar_scan_impl.h:141:17: error: ‘assert’ was not declared in this scope
  141 |                 assert(false);
      |                 ^~~~~~
/tmp/ouster_ws/src/ouster-ros/ouster-sdk/ouster_client/include/ouster/impl/lidar_scan_impl.h:13:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
   12 | #include "ouster/impl/packet_writer.h"
  +++ |+#include <cassert>
   13 | #include "ouster/lidar_scan.h"

Related Issues & PRs

Summary of Changes

Added cassert header in the lidar_scan_impl.h

Validation

ouster_ros which depends on ouster_sdk should be built without an issue

Fix build issue `error: ‘assert’ was not declared in this scope`
due to missing header "cassert" in the lidar_scan_impl.h or any included header
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.

2 participants