User forums > General (but related to Code::Blocks)

Compiling CodeBlocks with clang

<< < (2/2)

everSome:
Note the following excerpts from MSYS2 documentation:

Name        Prefix        Toolchain    Architecture    C Library    C++ Library
MINGW64  /mingw64  gcc            x86_64            msvcrt       libstdc++
UCRT64     /ucrt64      gcc            x86_64            ucrt           libstdc++
CLANG64   /clang64    llvm           x86_64            ucrt           libc++
.
GCC vs LLVM/Clang:
.
GCC based environments:
.
While there also exists a Clang package in the MINGW environments, that one still uses the GNU linker and the GNU C++ library.
.
LLVM/Clang based environments:
.
Only uses LLVM tools, LLD as a linker, LIBC++ as a C++ standard library.

Also note the following from the README.md file at
https://github.com/mstorsjo/llvm-mingw
which is where Mingw-w64 seems to get it's clang/llvm implementations:

Clang on its own can also be used as compiler in the normal GNU binutils based environments though, so the main difference lies in replacing binutils with LLVM based tools.

everSome:
This problem may well involve a non-standard usage or a posix variant (if such things exist) of c++ templates that gcc supports and clang doesn't. In trying to find out where the bodies therein are buried, I've come to the conclusion that they've all been cremated! Welcome to the fun world of C++ Template Metaprogramming. This will take awhile (at least for me).

Navigation

[0] Message Index

[*] Previous page

Go to full version