You are reading a single comment by @HughB and its replies. Click here to read the full conversation.
  • @user107850 - I ran into build issues. I had to create the build directory, but there is also a clash with time_t.

    I am on a Linux Debian environment

    $ uname -a
    Linux penguin 5.4.131-16049-gc688e114d34e #1 SMP PREEMPT Sun Sep 19 21:16:20 PDT 2021 x86_64 GNU/Linux
    
    $ 
    $ mkdir build
    $ pwd
    /home/hughbarney/src/banglejs-algos-test­er
    $ 
    $ ll
    total 12
    drwxr-xr-x 1 hughbarney hughbarney    0 Oct  4 21:13 build
    -rw-r--r-- 1 hughbarney hughbarney  608 Oct  4 21:04 CMakeLists.txt
    drwxr-xr-x 1 hughbarney hughbarney   10 Oct  4 21:04 data
    -rw-r--r-- 1 hughbarney hughbarney 1068 Oct  4 21:04 LICENSE
    -rw-r--r-- 1 hughbarney hughbarney 1703 Oct  4 21:04 README.md
    drwxr-xr-x 1 hughbarney hughbarney   50 Oct  4 21:04 src
    $ 
    $ 
    $ cd build
    $ cmake ../
    -- The C compiler identification is GNU 8.3.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/hughbarney/src/banglejs-algos-test­er/build
    $ 
    $ cmake --build .
    Scanning dependencies of target banglejs-algos-tester
    [  8%] Building C object CMakeFiles/banglejs-algos-tester.dir/src­/main.c.o
    In file included from /home/hughbarney/src/banglejs-algos-test­er/src/stepcounters/stepcounters.h:4,
                     from /home/hughbarney/src/banglejs-algos-test­er/src/main.c:6:
    /home/hughbarney/src/banglejs-algos-test­er/src/stepcounters/../types.h:8:18: error: conflicting types for ‘time_t’
     typedef uint32_t time_t;
                      ^~~~~~
    In file included from /usr/include/x86_64-linux-gnu/sys/types.­h:129,
                     from /usr/include/stdlib.h:394,
                     from /home/hughbarney/src/banglejs-algos-test­er/src/main.c:4:
    /usr/include/x86_64-linux-gnu/bits/types­/time_t.h:7:18: note: previous declaration of ‘time_t’ was here
     typedef __time_t time_t;
                      ^~~~~~
    make[2]: *** [CMakeFiles/banglejs-algos-tester.dir/bu­ild.make:63: CMakeFiles/banglejs-algos-tester.dir/src­/main.c.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/banglejs-algos-tester.dir/all­] Error 2
    make: *** [Makefile:106: all] Error 2
    $ 
    $ pwd
    /home/hughbarney/src/banglejs-algos-test­er/build
    
About

Avatar for HughB @HughB started