Hi All,
I get the following:
../src/libugridlib.a(tmsc_communicator.cc.o): In function `rti::core::policy::SystemResourceLimits& dds::core::TEntityQos<rti::domain::qos::DomainParticipantQosImpl>::policy<rti::core::policy::SystemResourceLimits>()':
/opt/rti_connext_dds-6.1.0/include/ndds/hpp/dds/core/TEntityQos.hpp:56: undefined reference to `rti::core::policy::SystemResourceLimits& rti::domain::qos::DomainParticipantQosImpl::policy<rti::core::policy::SystemResourceLimits>()'
when using:
domain_participant_qos_.policy<rti::core::policy::SystemResourceLimits>().max_objects_per_thread(4096);
and with the following libs specified for the linker:
libnddscpp2zd.a, libnddsczd.a, librtimonitoringz.a, libnddscorezd., librticonnextmsgczd.a, libssl.so, libcrypto.so
I've set values for other setting policies in this manner without a linker error - SystemResourceLimits seems special. Any ideas?
Ian
Based on this API doc: https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/api/connext_dds/api_cpp2/classrti_1_1core_1_1policy_1_1SystemResourceLimits.html
I'd recommend trying: #include <rti/core/policy/CorePolicy.hpp>
Unfortunately this is not a compile error, its a link error (unresolved symbol) - so I'd be looking for a missing library.
I'm following up here for others that might have run into this same issue. Support looked into this issue and recommended setting max_objects_per_thread this way which worked: