afrl-rq / OpenUxAS

Project for multi-UAV cooperative decision making
Other
48 stars 24 forks source link

GCC 11.4.0 build issues #91

Closed pwilliams12 closed 10 months ago

pwilliams12 commented 10 months ago

Latest build of GCC (11.4.0) available on Ubuntu 22.04 causes a compilation error from the boost libraries. This is caused because of a global using namespace std; line at the global level in a few header files. This seems like it should have been an issue all along but for some reason GCC 11.4.0 was the first compiler version to catch it.

Going to submit pull request that removes all using namespace... calls from header files and places at the source code level. Additionally, going to fix ordering of include files to avoid implicit includes by using the following order:

  1. Own header file (e.g. myFile.h should be first include for myFile.cpp)
  2. OpenUxAS header files
  3. Government headers (e.g. LMCP)
  4. 3rd party headers (e.g. pugixml.hpp)
  5. C++ STL and system headers
pwilliams12 commented 10 months ago

92 Pull request submitted.