eclipse-cyclonedds / cyclonedds-cxx

Other
96 stars 75 forks source link

'dds_take_with_collector' was not declared in this scope #440

Closed mmyy521 closed 1 year ago

mmyy521 commented 1 year ago

Hi,@eboasson. When i try to compile the cyclone@master with cyclone-cxx@0.10.3 then i have a compile error, how did you done it? /cyclonedds-cxx/src/ddscxx/src/org/eclipse/cyclonedds/sub/AnyDataReaderDelegate.cpp:414:11: error: 'dds_take_with_collector' was not declared in this scope 'dds_read_with_collector' was not declared in this scope

eboasson commented 1 year ago

Why would you want to do that? The general rule is that mixing and matching 0.10.x and master is tricky. The C++ binding does use some things that are not part of the stable API and so not all combinations always work.

Besides, I suspect you flipped the versions and you're trying to build cyclonedds-cxx @ master against cyclonedds @ 0.10.3: the dds_take_with_collector function was introduced very recently in master and is definitely not in 0.10.3.

mmyy521 commented 1 year ago

Thank you for your quick reply, as you said, it was a version mismatch issue.