Skip to content
Snippets Groups Projects
  1. Nov 25, 2017
  2. Nov 15, 2017
  3. Nov 09, 2017
  4. Nov 08, 2017
  5. Nov 07, 2017
  6. Nov 02, 2017
  7. Nov 01, 2017
  8. Oct 15, 2017
  9. Sep 11, 2017
  10. Aug 11, 2017
  11. Aug 07, 2017
  12. Aug 04, 2017
  13. Aug 03, 2017
  14. Jul 16, 2017
  15. Jul 03, 2017
  16. May 17, 2017
  17. May 12, 2017
  18. May 05, 2017
  19. Apr 12, 2017
  20. Mar 07, 2017
  21. 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
  22. Jan 11, 2017
  23. Jan 01, 2017
  24. Dec 22, 2016
  25. Dec 06, 2016
Loading