CLion 入门

时间: 2023-07-10 admin IT培训

CLion 入门

CLion 入门

1. 配置编译环境 

Toolchains are not configured Configure 

 

-- Configuring done
CMake Error at CMakeLists.txt:6 (add_executable):Cannot find source file:SortTestHelper.hTried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:6 (add_executable):No SOURCES given to target: CDemo
CMake Generate step failed.  Build files cannot be regenerated correctly.
[Previous CMake output restored: 2019/10/27 16:10]

 


MinGW安装教程 

2.1 下载 mingw-w64-install.exe

不要使用 mingw-get-setup.exe ,这个安装的是32位的

下载地址:/

 

2.2 安装

Architecture是区分64位和32位的,如果你的电脑是64位的,请选择x86_64,如果电脑是32位的,请选择i686

 其他选项不做改动

 下面对几个选项给出说明

  • Version制定版本号,从4.9.1-8.1.0,按需选择,没有特殊要求就用最新版吧;
  • Architecture跟操作系统有关,64位系统选择x86_64,32位系统选择i686;
  • Threads设置线程标准可选posix或win32;
  • Exception设置异常处理系统,x86_64可选为seh和sjlj,i686为dwarf和sjlj;
  • Build revision构建版本号,选择最大即可。

Next Cancel 都可以