Skip to content

libcdr depends ddsrt #2337

@junhee-lee-42dot

Description

@junhee-lee-42dot

I'm using CycloneDDS master (2a1a498) to obtain a CDR facility from CycloneDDS.

I found that if the CMake script in the CDR directory runs outside the CycloneDDS project, it exports headers and libcdr. I linked libcdr to my app, but it produces linking errors.

The missing functions are part of DDSRT, and I assumed CDR was a standalone library. Is this intended?

/usr/bin/ld: undefined reference to `ddsrt_hh_new'
/usr/bin/ld: undefined reference to `ddsrt_hh_lookup'
/usr/bin/ld: undefined reference to `ddsrt_mh3'
/usr/bin/ld: undefined reference to `ddsrt_hh_free'
/usr/bin/ld: undefined reference to `ddsrt_hh_enum'
/usr/bin/ld: undefined reference to `dds_cdrstream_default_allocator'
/usr/bin/ld: undefined reference to `ddsrt_hh_add'
/usr/bin/ld: undefined reference to `ddsrt_hh_empty'

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