首页 > 编程知识 正文

codeblocks安装编译器,mingw如何安装

时间:2023-05-04 15:00:45 阅读:157137 作者:2260

将mingw64添加到环境变量: mingw-64x86 _ 64-8.1.0-release-POSIX-seh-rt _ V6-rev0mingw 64 bin

打开CTRLrcmd并返回gcc-v托架

c :userschademdcplusplus-projectc :users chadecdcplusplus-projectc : _ SERS _ chade _ cplusplus plus确保打开的是当前文件,单击转到,然后单击打开配置

tasks.json编译任务配置launch.json调试配置c_cpp_properties.json c/c编译版本配置

3359 code.visual studio.com/docs/CPP/c-CPP-properties-schema-reference

如果创建helloc.c文件,单击菜单末端,然后单击设置缺省生成项目,以自动打开tasks.json,则会增加gcc/c : gcc.exebuildactivefile ctrl shift b输入c/c

以下是自动生成的文件

task.json

{ ' tasks ' : [ ' type ' : ' CPP build ',' label ' : ' c/c : g.exebuildactivefile ',' command ' 3360 ' spp cplusplussoftwareenvironment\ mingw-64x86 _ 64-8.1.0-release-pos ease ' args ' 3360 [ '-g ',$ { finase } ' opper ' softwaredevelopmentenvironment\ cplusplussoftwareenvironment\ mingw-64x86 _ 64-8.1.0-releleaspleasssasseassed ' group': 'build ',' detail ' 3360 ' taskgeneratedbydebugger.',{ ' tyu gger ' ' label ' 3360 ' c/c 3: GC.excc softwaredevelopmentenvironment\ x86 _ 64-8.1.0-release-POSIX-seh-rt _ V6-rev0mingw 64bin gin ' options ' : { ' CWD ' : ' d :softwaredevelopmentenvironmentx86 _ 64-8.1.0-release-POSIX-seh bin ',' problem matcher ' 3360 [ ' $ gg ] ' is default ' : true ],' detail ' : ' compiler : d :softwareded _ cplusplusoftwarre x86 _ 64-8.1.0-release-POSIX-seh-rt _ V6-rev0\mingw 64bin gcc.exe ' '

使用IntelliSense了解相关属性。 //悬停以查看现有属性的说明。 //详情请参阅:https://go.Microsoft.com/fwlink/linkid=830387 ' version ' : '0.2.0',' configuration s ' 3330。 ' type ' 3360 ' program ' : ' $ { file dirname }$ { filebasenamenoextension }.exe ',' args': [],' stopat softwaredevelopmentenvironment\ cplusplussoftwareenvironment\ mingw-64 _ x86-64-8.1.0-release-pos eass '外部控制台' : false,' MIMode': 'gdb ',' midebuggerpath'3360'd: (() ) ) ) )。 clusplussoftwareenvironment\ mingw-64x86 _ 64-8.1.0-release-POSIX-seh-rt _ V6-rev0mingw ' setet ' text ' : '-enable-pretty-printing ',' ignorefailling] '

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。