初识Code::Blocks

简介: 本学习笔记所使用的Code::Blocks版本是13.12。安装下载安装文件 双击下载文件codeblocks-13.12mingw-setup-TDM-GCC-481进行安装,选择默认设置即可创建项目点击File-New-Project 选择Console application,点击”Go” 点击“Next” 点击“Next” 填写创

本学习笔记所使用的Code::Blocks版本是13.12。

  • 安装

    • 下载安装文件
      这里写图片描述

    • 双击下载文件codeblocks-13.12mingw-setup-TDM-GCC-481进行安装,选择默认设置即可

  • 创建项目

    • 点击File-New-Project
      这里写图片描述

    • 选择Console application,点击”Go”
      这里写图片描述

    • 点击“Next”
      这里写图片描述

    • 点击“Next”
      这里写图片描述

    • 填写创建项目的名称和项目路径
      这里写图片描述

    • 选择默认的编译器GNU GCC Compiler并点击“Finish”,完成项目创建。

  • 运行程序

    • Build : Ctrl-F9
    • Run : Ctrl-F10
    • Build and run : F9
    • Rebuild : Ctrl-F11
    • Comment : Ctrl-Shift-C
    • Uncomment : Ctrl-Shift-X

运行程序时出现如下错误提示信息:
“ConsoleCplus - Debug”: The compiler’s setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto “Settings->Compiler…->Global compiler settings->GNU GCC Compiler->Toolchain executables” and fix the compiler’s setup.
Skipping…
Nothing to be done (all items are up-to-date).

解决方式:
更改编译器地址
这里写图片描述

随后程序即可正确运行
这里写图片描述

  • 程序调试

    • F5 - 设置断点
    • F8 - 开始调试
    • F7 - 下一行

    Code::Blocks在调试过程中查看变量没有VS方便,需要点击Debug-Debugging windows-Watches打开变量查看窗口

Watches

目录
相关文章
|
调度 索引
NR PUCCH(四) UL data operation
UE 在connected mode 需要实时和网络进行上下行通信,在UE有UL data要发送但是没有UL grant时,就需要向网络端发送SR请求资源,网络收到SR就会在激活的BWP上发送 UL DCI给UE,UE 根据UL DCI 信息 获得UL grant ,然后在PUSCH对应的资源上就可以发送UL data给网络,最后网络端通过HARQ 过程指示是否有收到对应的data。这是UL data 的基本流程,下面通过实际log分别看下UL data operation的各个过程。
|
11月前
|
Java 应用服务中间件
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
【异常】The field file exceeds its maximum permitted size of 1048576 bytes.
134 0
|
4月前
|
Docker 容器
devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free dat
devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free dat
35 0
|
Java Spring
The field file exceeds its maximum permitted size of 1048576 bytes 文件上传大小受到限制,报错!!
The field file exceeds its maximum permitted size of 1048576 bytes 文件上传大小受到限制,报错!!
521 0
|
Java 应用服务中间件
The field file exceeds its maximum permitted size of 1048576 bytes.
The field file exceeds its maximum permitted size of 1048576 bytes.
|
前端开发 Java 关系型数据库
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
1101 0