LoginSignup
1
1

More than 1 year has passed since last update.

WindowsにClang&gccの環境を作る

Posted at

結論

  1. 以下をダウンロード
    Releases · mstorsjo/llvm-mingw · GitHub
    llvm-mingw-*-msvcrt-x86_64.zip
    ※現時点は「llvm-mingw-20220906-msvcrt-x86_64.zip」

  2. ZIPを展開
    任意の場所に任意のフォルダ名で配置

    C:\llvm-mingw
        aarch64-w64-mingw32
        armv7-w64-mingw32
        bin
        i686-w64-mingw32
        include
        lib
        python
        share
        x86_64-w64-mingw32
    
  3. 環境変数PATHに「C:\llvm-mingw\bin」を追加
    コマンドプロンプトを起動し、Cソースをコンパイル(64bitバイナリが出力される)

    clang xxx.c
    

ハマったこと

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1