TheAlgorithms/C-Plus-Plus

[BUG] gcc >= 13 reordered headers.

realstealthninja opened this issue · 5 comments

Description

#2702 mentions reports of algorithms failing to compile due to a reordering of the headerfiles. Including cstdint would be better practice too.

Expected behavior

all typedefs of primitive types containing files compiles

Actual behavior

Compilation failure

Steps to reproduce

  1. Use gcc >= 13
  2. Run cmake build on any of the algorithm containing typedefs like uint8_t

Context

Requiring temporary inclusions of cstdint before creating changes then removing them for the actual pr

Additional information

No response

dockcross/dockcross#832 is another example of users being affected

Merged #2702
If you find more examples please raise a pull request

81 files are affected. currently going to each and every file and manually adding headers.

@VirtualTim happy to report we have pr that will fix the gcc reordering issue

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.