WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Compiling with clang  (Read 42 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15514
Compiling with clang
« on: Today at 07:00:34 AM »
In case anybody has had problems compiling with clang - here a a couple of fixes that help when clang complains it cannot find one or more of the gcc c++ header files:

Make llvm-config an actual file rather than a symlink:
Code: [Select]
sudo cp /tmp/tcloop/llvm19-dev/usr/local/bin/llvm-config /usr/local/bin
Make clang-19 an actual file and redo symlinks to it:
Code: [Select]
sudo cp /tmp/tcloop/clang/usr/local/bin/clang-19 /usr/local/bin
cd /usr/local/bin
sudo ln -sf clang-19 clang
sudo ln -sf clang-19 clang++