What lib am I missing?

4 posts / 0 new
Last post
Offline
Last seen: 2 years 8 months ago
Joined: 11/15/2021
Posts: 2
What lib am I missing?

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

r
Offline
Last seen: 1 month 3 days ago
Joined: 06/17/2019
Posts: 47
Offline
Last seen: 2 years 8 months ago
Joined: 11/15/2021
Posts: 2

Unfortunately this is not a compile error, its a link error (unresolved symbol) - so I'd be looking for a missing library.

r
Offline
Last seen: 1 month 3 days ago
Joined: 06/17/2019
Posts: 47

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:

 

	dds::domain::qos::DomainParticipantFactoryQos dpfQos;
	dpfQos->resource_limits.max_objects_per_thread(2048);
	dds::domain::DomainParticipant::participant_factory_qos(dpfQos);
	std::cout << "DEBUG: " << dpfQos->resource_limits.max_objects_per_thread() << std::endl;