当前位置: 首页 > news >正文

广西网站建设价格多少网网站建设的公司

广西网站建设价格多少,网网站建设的公司,备案做电影网站吗,关于做女装的网站概述 cmake是一种跨平台编译工具#xff0c;除了可以编译c#xff0c;c代码也可以编译其他语言的代码#xff0c;其主要就是通过cmake执行CMakeLists.txt从而生成Makefile。下面就自己了解到的简单的一点知识#xff0c;做以记录。更多可查看官网#xff1a;https://cmak…概述 cmake是一种跨平台编译工具除了可以编译cc代码也可以编译其他语言的代码其主要就是通过cmake执行CMakeLists.txt从而生成Makefile。下面就自己了解到的简单的一点知识做以记录。更多可查看官网https://cmake.org。 cmake简单使用 创建项目文件夹。 在终端输入指令mkdir testCmake-helloworld创建项目文件及CMakeLists.txt。 在终端输入 cd testCmake-helloworld touch CMakeLists.txt vim main.cpp 打开main.cpp后在其中写入如下内容 main.cppmain.cpp #include iostreamusing namespace std;int main(int argc,char*argv[]) {couthello world!!endl;return 0; }保存后退出。 终端输入vim CMakeLists.txt 向CMakeLists.txt写入如下内容 cmake_minimum_required(VERSION 2.8) project(hello) add_executable(hello main.cpp)保存退出查看当前的文件列表 $ ls CMakeLists.txt build-hello-cmake main.cpp 可以看到有两个文件CMakeLists.txt 和main.cpp一个文件夹build-hello-cmake此时可以进入到构建目录build-hello-cmake中输入下述指令 cmake ..终端会显示如下 CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):Compatibility with CMake 2.8.12 will be removed from a future version ofCMake.Update the VERSION argument min value or use a ...max suffix to tellCMake that the project does not need compatibility with older versions.-- The C compiler identification is AppleClang 13.0.0.13000029 -- The CXX compiler identification is AppleClang 13.0.0.13000029 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/admin/Program/testCmake-helloworld/build-hello-cmake接着终端输入 make终端显示如下 [ 50%] Building CXX object CMakeFiles/hello.dir/main.cpp.o [100%] Linking CXX executable hello [100%] Built target hello此时构建完成在目录build-hello-cmake中生成可执行程序hello。当前路径下执行下述指令 # admin bogon in ~/Program/testCmake-helloworld/build-hello-cmake [17:21:33] $ ./hello hello world!!会输出程序的运行结果。 上述是cmake执行构建的过程总体来说就是下列指令 mkdir 构建目录名 cd 构建目录名 cmake CMakeLists.txt所在的路径 make 其构建项目最常用的四句指令就是上述所写。首先在项目目录下创建一个空文件夹作为构建目录即mkdir 构建目录名;然后进入构建目录即cd 构建目录名接下来执行cmake,但是在cmake的后面需要指明CMakeLists.txt所在的路径最后执行make指令整个项目生成可执行程序。 当不在构建目录里执行cmake时可以按照下述方法来执行cmake: admin bogon in ~/Program/testCmake-helloworld [17:31:29] $ cmake -S ./ -B ./build-hello-cmake CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):Compatibility with CMake 2.8.12 will be removed from a future version ofCMake.Update the VERSION argument min value or use a ...max suffix to tellCMake that the project does not need compatibility with older versions.-- The C compiler identification is AppleClang 13.0.0.13000029 -- The CXX compiler identification is AppleClang 13.0.0.13000029 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/admin/Program/testCmake-helloworld/build-hello-cmake 其中-S指明了源文件所在的路径-B指明了构建生成的文件所在的路径。 这样就可以在非构建目录下执行cmake但生成的文件依旧存入到构建目录中。同样接下来也在项目目录下使用指令make,指令如下 # admin bogon in ~/Program/testCmake-helloworld [17:33:09] $ make -C ./build-hello-cmake [ 50%] Building CXX object CMakeFiles/hello.dir/main.cpp.o [100%] Linking CXX executable hello [100%] Built target hellomake指令中-C指明了生成可执行文件所在的路径。 以上仅供参考。
http://www.pierceye.com/news/884448/

相关文章:

  • 中国农村建设网站静安广州网站建设
  • 全国 做网站的企业wordpress+编辑模板
  • 网站开发需要的编程软件有哪些海门住房和城乡建设局网站
  • 南宁上林网站建设交换链接是什么
  • 什么网站做简历好api模式网站开发
  • 网站建设与管理专业好吗网络推广seo培训班
  • 常用网站架构辽宁建设工程信息网审计报告
  • 绿色大气网站模板坪山网站建设公司
  • 网站建设动态wordpress禁止自动升级
  • 网站建设网站建设平台网站建设费计入什么科目比较好
  • 豪圣建设项目管理网站公司网站设计与管理
  • 网站开发很难么交互网站图
  • 做网站用什么语音网站开发绪论
  • 中国建设银行徐州分行网站网站如何做视频教程
  • 烟台建站服务荥阳市建设局 网站
  • 网站备案登记推广网站案例
  • 企业网站设计论文摘要怎么写网络广告是什么意思
  • 自建站服务快应用 小程序
  • 上海网站建设过程邯郸网站建设推荐咨询
  • 公司有网站域名 如何做网站wordpress 字段
  • 做网站的类型东莞网页设计制作公司
  • 有品质的网站推广公司网站建设彩铃语
  • wordpress提示更新网站页面seo
  • 建设全国科技中心网站郑州百姓网官网
  • 漂亮网站wordpress 文章统计
  • 广西建设厅培训中心兰州seo网站排名
  • 布吉医院网站建设鞍山市网络销售平台
  • 开发一个网站系统报价wordpress文章摘要
  • 做脚本从网站引流外贸网站建设不可缺少的灵活性
  • 网站开发用linux好吗网站公司网站搭建