|
From: | Waléria Antunes David |
Subject: | Re: [certi-dev] Problem with RTIAmbassador |
Date: | Mon, 15 Apr 2013 10:27:31 -0300 |
2013/4/15 Waléria Antunes David <address@hidden>
Do you Know why am I having link problem when using the following code to create a RTIAmbassador? Which lib do I have to use?
std::vector< std::wstring > args;
RTIambassadorFactory* rtiAmbFactory = new RTIambassadorFactory();std::auto_ptr < RTIambassador > rtiAmbAP = rtiAmbFactory->createRTIambassador(args);
m_rtiAmbassador = rtiAmbAP.release();
delete rtiAmbFactory;
This looks OK.In any case you have a working example in the CERTI test suite:
http://cvs.savannah.gnu.org/viewvc/applications/HLA_TestsSuite/01-FederationExecutionTest.cc?root=certi&view=markup
I´m also no sure about de “args” argument, which kind of information must be passed to the createRTIambassador method?CERTI currently does not use this arguments list.
The IEEE-1516-2010-1 document says:
"The possible values for the strings in the vector argument are implementation dependent."You can check by yourself by diving into the corresponding source in CERTI.Obs.: The link problem is showed in the .jpg.
Since this is a link problem, you must be missing some library in your link directive.You should be linking against RTI1516(d) , FedTime1516(d) .'d' suffix is for "Debug" build.
If you use CMake in order to create your project build you may
use FindRTI.cmake shipped with CERTI. A CERTIConfig.cmake should be available soon too.
--
Erk
Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org
--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |