Chapter 8.3 : Compilation



Appelons notre script de compilation :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
./singularity_run_fedora38.sh
Used machine is Linux pierre-Precision-7670 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linux
Remove existing directory XXX/TestRangeViewZip/build_cmake_pierre-Precision-7670
BUILD_DIR = 'XXX/TestRangeViewZip/build_cmake_pierre-Precision-7670'
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /build
[ 50%] Building CXX object CMakeFiles/test_zip.dir/main.cpp.o
[100%] Linking CXX executable test_zip
[100%] Built target test_zip
Test with simple zip :
a = 0, b = 10, c = 100
a = 1, b = 11, c = 101
a = 2, b = 12, c = 102
a = 3, b = 13, c = 103
a = 4, b = 14, c = 104
a = 5, b = 15, c = 105
a = 6, b = 16, c = 106
a = 7, b = 17, c = 107
a = 8, b = 18, c = 108
a = 9, b = 19, c = 109
Test with zip of repeat :
a.front() = 0, b.front() = 10, c.front() = 100
a.front() = 0, b.front() = 10, c.front() = 100
Test with zip of repeat (but let's try to expand it) :
a.front() = 0, b.front() = 10, c.front() = 100
a.front() = 0, b.front() = 10, c.front() = 100


Voilà, notre test fonctionne.