BinaryByter
gnu compiler collection
gcc -> gnu c compiler
klimi
https://gcc.gnu.org/
klimi
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go,
BinaryByter
https://www.abbreviations.com/GCC
klimi
https://gcc.gnu.org/
BinaryByter
https://www.abbreviations.com/GCC
gnu C compiler is the most used abbreviation
BinaryByter
Lets say, we both win this point ;)
klimi
but then upgradet it
BinaryByter
let's stop bikeshedding
klimi
changeds
Anonymous
Thanks
BinaryByter
BinaryByter
let's just stop bikeshedding
klimi
READ IT
BinaryByter
BinaryByter
I know my tools lol
BinaryByter
atleast to some extent ;_;
klimi
no
klimi
you dont
BinaryByter
I do
klimi
but still
klimi
i ❤️ u
BinaryByter
I love you too
klimi
:3
BinaryByter
but I do know my tools
BinaryByter
lol
BinaryByter
And again:
BinaryByter
let's stop talking for hours about small stuff
klimi
hm
Bader
was this supposed to be a pun? xDD
it was a failed attempt at one yes
BinaryByter
don't worry, it's fine ;)
Bader
BinaryByter
where are his hands to grab the delicious dessert?
klimi
olli
What are your reasons to prefer gcc to clang?
Bader
where are his hands to grab the delicious dessert?
the linker couldn't link them, so they're not there
BinaryByter
What are your reasons to prefer gcc to clang?
Clang doesnt compile standard - compliant code
Bader
poor bobby :( linker errors always get teh best of him
BinaryByter
BinaryByter
Mind to share an example?
I recently wanted to compile my NN-library with clang
BinaryByter
didn't work
BinaryByter
some obscure compiler errors
olli
Recently I figured there are more compliant related bugs in GCC than Clang
olli
What compiler do you use?
BinaryByter
g++
BinaryByter
always
olli
which one :D
BinaryByter
klimi
[klimi@klimistation Stažené]$ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 8.1.1 20180712 (Red Hat 8.1.1-5) (GCC)
klimi
jeez maxi dnf update
klimi
yeah
klimi
its out...
Dima
if there’s dependency hell.. there’s also command line hell
BinaryByter
klimi
very long time
olli
BTW, g++-8 warns when catching a polymorphic base by value
olli
-Werror will prevent it from compiling
klimi
wha
klimi
lemme try
klimi
works
olli
error: catching polymorphic type ‘class std::exception’ by value [-Werror=catch-value= catch (std::exception e)] catch (std::exception e)
klimi
where
olli
https://godbolt.org/g/QubWdq
olli
wherever you use it :D
klimi
[klimi@klimistation ~]$ g++ challenge1.2.cpp -Werror [klimi@klimistation ~]$
olli
You need to enable -Wall
klimi
[klimi@klimistation ~]$ g++ challenge1.2.cpp -Werror [klimi@klimistation ~]$ g++ challenge1.2.cpp -Werror -Wall [klimi@klimistation ~]$
olli
https://godbolt.org/g/QubWdq
^ same behavior on my machine using g++-8 on Windows or Linux
klimi
so
klimi
oh
klimi
you have try in it
klimi
i havent added that
olli
how do you catch without a try ?