Help with C++ Foo example VS2012 Debug Mode ?

1 post / 0 new
Offline
Last seen: 10 months 1 week ago
Joined: 10/22/2018
Posts: 5
Help with C++ Foo example VS2012 Debug Mode ?

hi all,

sorry for a newbie question, I am trying to run the Foo_publisher and Foo_subscriber in debugging mode using Visual Studio 2012. 

I follow this guide: https://community.rti.com/static/documentation/connext-dds/5.3.0/doc/api/connext_dds/api_cpp2/examples.html and this https://community.rti.com/static/documentation/connext-dds/5.2.0/doc/manuals/connext_dds/html_files/RTI_ConnextDDS_CoreLibraries_GettingStarted/Content/GettingStarted/BuildingRunningHelloWorld_.htm

I can generate .h & .cxx using the command: >rtiddsgen -language C++11 -example i86Win32VS2012 Foo.idl and I can build those executable using the generated project files but for the life of me, I could not figure out how to run in debugging mode. I get this error:

"

DDS_DomainParticipantGlobals_initializeWorkerFactoryI:!Potential library mismatch.
This may happen if your application uses the static and the shared RTI core
libraries simultaneously.
For example, using the shared RTI Monitoring library
and linking statically with the RTI core libraries will cause this mismatch
RTIDefaultMonitorPublisher_create:!get worker factory
DDS_DomainParticipantGlobals_initializeWorkerFactoryI:!Potential library mismatch.
This may happen if your application uses the static and the shared RTI core
libraries simultaneously.
For example, using the shared RTI Monitoring library
and linking statically with the RTI core libraries will cause this mismatch
RTIDefaultMonitorPublisher_delete:!get worker factory
[CREATE Participant]DDS_DomainParticipantMonitoring_initializeMonitoringLibrary:ERROR: Failed to get monitoring class
[CREATE Participant]DDS_DomainParticipantMonitoring_initializeI:!create monitoring library instance
[CREATE Participant]DDS_DomainParticipant_createI:!create builtin monitoring support
[CREATE Participant]DDS_DomainParticipantPresentation_prefinalize:!shut down participant core"

I have the Debbugin->Enviroment set to "PATH=%PATH%;$(NDDSHOME)\lib\i86Win32VS2012;"

I can run the example from command line fine.