You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried building the Receiver-Example with DIS version 7. In order to do this I changed the target_link_libraries from OpenDIS6 to OpenDIS7. Furthermore I changed the Includes for the EntityStatePdu from #include <dis6/EntityStatePdu.h> to #include <dis7/EntityStatePdu.h> in EntityStatePduProcessor.h and main_receive.cpp.
When I try to build, I get an error about "type redefinition" of DIS::Pdu. In my opinion this makes sense, since there is still the Include #include <dis6/utils/IncomingMessage.h>. That include references dis6/Pdu.h.
What exactly am I doing wrong? How can I change the example to use DIS version 7?
The text was updated successfully, but these errors were encountered:
I tried building the Receiver-Example with DIS version 7. In order to do this I changed the
target_link_libraries
fromOpenDIS6
toOpenDIS7
. Furthermore I changed the Includes for the EntityStatePdu from#include <dis6/EntityStatePdu.h>
to#include <dis7/EntityStatePdu.h>
inEntityStatePduProcessor.h
andmain_receive.cpp
.When I try to build, I get an error about "type redefinition" of
DIS::Pdu
. In my opinion this makes sense, since there is still the Include#include <dis6/utils/IncomingMessage.h>
. That include referencesdis6/Pdu.h
.What exactly am I doing wrong? How can I change the example to use DIS version 7?
The text was updated successfully, but these errors were encountered: