Code::Block Usage Under Ubuntu
Code::Block is a C/C++ IDE that could run on different OS, Windows, Linux and Mac OS. Comparing to the VS under the windows, it is less powerful. But it will help you a lots, and improve the your work efficient if you were not an Linux coding expert. Graphics IDE always appear a lots of charming compared to the white text and black ground window.
File –> New –> Project
A new project could be created as the above menu selection path.
Too many project templates, right? But do not worry, each template is just a “HelloWord”sample. You could code your project as many feature as more as possible.
Add Include directory, “Project”->”Build Option”
Add link libraries directory, Project-> Build Options:
Add link libraries, Project –> Build Options:
Add Pre-process Macros, Project –> Build Options:
Goto File, Alt + G
Something more
- a) On the Ubuntu OS, the file path is case sensitive; The file path in #include command is case sensitive in Code::Block;
- b) Do not mix .cpp and .c source files in Code::Block project. Otherwise you will come across some strange function calling link errors. You will see a error happen when you use a std::vector in a .c source file.
- c) Do not add suffix for link libraries. For example, when you want to link OpenGL library, you need to add libGL instead of libGL.so.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了