certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] Problem with RTIAmbassador


From: Eric Noulard
Subject: Re: [certi-dev] Problem with RTIAmbassador
Date: Mon, 15 Apr 2013 15:16:45 +0200




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?

The IEEE-1516-2010-1 document says:

"The possible values for the strings in the vector argument are implementation dependent."
CERTI currently does not use this arguments list.
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]