Deep Dive into Linux: Master GDB for Instant Process Debugging!

Deep Dive into Linux: Master GDB for Instant Process Debugging!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, remark 【Official Account】 for faster approval Common Usage Start: gdb File Exit: ctrl + d or quit debugging command These are the two files you need to use. Execute to generate the myexe file, … Read more

Why Embedded C Programming Prefers Typedef?

Why Embedded C Programming Prefers Typedef?

Click the above“Embedded and Linux Matters”, select“Pin/Star the Official Account” Welfare and valuable content delivered promptly Abstract: Different projects have different coding styles and “quirks”. After reading enough code, you will find that some code prefers macros while others prefer using typedef. So what are the benefits of using typedef? Why do many people like … Read more

Advanced Full-Stack Development in Linux C/C++

Advanced Full-Stack Development in Linux C/C++

Advanced Full-Stack Development in Linux C/C++ Introduction In today’s rapidly advancing technology, mastering one or more programming languages has become the pursuit of many. C/C++ programming on the Linux platform, due to its efficiency, stability, and powerful performance, has become a favorite among many developers. Today, let’s explore the secrets of advanced full-stack development in … Read more

Flow Control and Functions in CMake

Flow Control and Functions in CMake

Background CMake CMake is a cross-platform open-source build tool used to manage and automate the generation of software project build processes. CMake automatically generates build system files suitable for different compilers and operating systems, such as Makefile and Visual Studio solutions, based on the descriptions in the CMakeLists.txt file. CMake Scripts Although CMake itself is … Read more

CMake: Setting Language Standards (Part 2)

CMake: Setting Language Standards (Part 2)

Introduction: Today, we continue to explore the features of C++14 and C++17. ✦ New Features of C++14 ✦ 01 Function Return Type Deduction ✦ c++14 optimized the rules for function return type deduction: #include using namespace std; auto func(int i) { return i; } int main() { cout << func(4) << endl; return 0; } … Read more

CMake: Set Language Standard (Part One)

CMake: Set Language Standard (Part One)

Introduction: Programming languages have different standards, and enabling a new standard is achieved by setting appropriate compiler flags. First, let’s understand the relevant features of C++ 11. For information on setting language features, please refer to the previous or earlier articles regarding CMakeLists.txt, which also cover this topic! ✦ C++ Standard History✦ In 1998, the … Read more

Building Static and Dynamic Libraries with CMake

Building Static and Dynamic Libraries with CMake

Clickthe blue text Follow us In a previous article, we discussed how to use CMake to compile “hello world”. This article will cover building static and dynamic libraries. Link to the previous article: “CMake, a Build Tool for Large Projects” For an understanding of static and dynamic libraries, you can refer to the previous articles: … Read more

Practical Guide | Quickly Generate Visual Studio Projects Using CMake

Practical Guide | Quickly Generate Visual Studio Projects Using CMake

1. Introduction Hello everyone, I am ZhengN. Recently, I needed to migrate the embedded Linux platform code of my project to Windows for simulation purposes, which involved solving three problems: Setting up the project. Replacing some platform-specific code. Preparing some dynamic libraries. This note shares the practical steps for setting up the project: 2. Overview … Read more

CMake: How to Link Shared Libraries

CMake: How to Link Shared Libraries

ClickBlue Text Follow Us CMake is a simple build tool that saves us from designing complex Makefiles. The author has previously organized two related articles as follows: “CMake, a Build Tool for Large Projects” “CMake Static and Dynamic Library Construction” Today’s article continues to expand on the project discussed in the previous article. If you … Read more

CMake Learning Summary (Part 2)

CMake Learning Summary (Part 2)

Hello everyone, in the last article I shared the first part of the cmake article: CMake Learning Summary (Part 1). Today, I will continue to share more about cmake. Without further ado, let’s get started. 1. Make Good Use of CMake, Be Happy All Day (Even…): 1. For multiple source files, use the command aux_source_directory(dir … Read more