Skip to content
Snippets Groups Projects
  1. Apr 12, 2017
  2. Mar 07, 2017
  3. 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
  4. Jan 11, 2017
  5. Jan 01, 2017
  6. Dec 22, 2016
  7. Dec 06, 2016
  8. Dec 01, 2016
  9. Nov 09, 2016
  10. Nov 04, 2016
Loading