Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build example with DIS version 7 #93

Open
nadja-w opened this issue Feb 14, 2024 · 0 comments
Open

How to build example with DIS version 7 #93

nadja-w opened this issue Feb 14, 2024 · 0 comments

Comments

@nadja-w
Copy link

nadja-w commented Feb 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant