I tried building the Receiver-Example with DIS version 7. In order to do this I changed the target_link_libraries from OpenDIS6to 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?
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" ofDIS::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?