Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

"‘FLT_MAX’ was not declared in this scope" when building crazyswarm in Arch Linux #2

@schlagenhauf

Description

@schlagenhauf

Building crazyswarm in Arch Linux with bash build.sh produces

/home/user/repos/ext/crazyswarm/ros_ws/src/externalDependencies/libobjecttracker/src/object_tracker.cpp:148:19: error: ‘FLT_MAX’ was not declared in this scope
  148 |   float closest = FLT_MAX;

Adding #include <float.h> to object_tracker.cpp lets me finish the build. Not sure why this is not necessary for other users, but it seems to fit "include what you use".

gcc version: 11.1.0
cmake version: 3.22.0

This is basically the same as USC-ACTLab/libmotioncapture#12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions