Skip to content

build dependencies error #8

@Yanniy

Description

@Yanniy

Error:
CyberRT/cyber-rt-master/build/external/src/fastrtps/include/fastrtps/rtps/writer/RTPSWriter.h:66:54: error: ‘function’ in namespace ‘std’ does not name a template type
RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
^~~~~~~~
2021-07-21_15-42

Solution:
1.I just go to the build folder and open <build/external/src/fastrtps/include/fastrtps/rtps/writer/RTPSWriter.h>.
2.Add #include in the head file.
3.make

I don't know how to fully fixed it. If I delete the build folder, I need to add this manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions