Skip to content
Snippets Groups Projects
  1. Mar 27, 2018
  2. Dec 21, 2017
  3. Nov 25, 2017
  4. Nov 15, 2017
  5. Nov 09, 2017
  6. Nov 08, 2017
  7. Nov 07, 2017
  8. Nov 02, 2017
  9. Nov 01, 2017
  10. Oct 15, 2017
  11. Sep 11, 2017
  12. Aug 11, 2017
  13. Aug 07, 2017
  14. Aug 04, 2017
  15. Aug 03, 2017
  16. Jul 16, 2017
  17. Jul 03, 2017
  18. May 17, 2017
  19. May 12, 2017
  20. May 05, 2017
  21. Apr 12, 2017
  22. Mar 07, 2017
  23. Mar 06, 2017
    • Jakub Jirůtka's avatar
      include <sys/types.h> where uint is used · a623289d
      Jakub Jirůtka authored
      Compilation fails on gcc 6.3.0 and musl libc:
      
        g++ -pipe -std=c++11 -O3 -DNDEBUG -DRELEASE -c -Wall -pedantic -Wextra -Werror \
          -Wshadow -Wpointer-arith -Wcast-qual -Wdelete-non-virtual-dtor \
          -Wredundant-decls -fPIC \
          ... \
          alib2algo_experimental/src/graph/spanningtree/Kruskal.cpp \
          -o alib2algo_experimental/obj-release/graph/spanningtree/Kruskal.o
        In file included from alib2algo_experimental/src/graph/spanningtree/Kruskal.cpp:15:0:
        alib2algo_experimental/src/graph/spanningtree/../datastructs/Components.h:74:3: error: 'uint' does not name a type
           uint parent;
           ^~~~
      
      This type is defined in sys/types.h when _GNU_SOURCE or _BSD_SOURCE is
      defined (at least in musl libc). Please note that uint is not specified
      in C++ standard and should not be used...
      a623289d
  24. Jan 11, 2017
  25. Jan 01, 2017
  26. Dec 22, 2016
Loading