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