Master CMake for Building Static and Dynamic Libraries

Master CMake for Building Static and Dynamic Libraries

1. Task Explain the process of building static and dynamic libraries with CMake in a simple and understandable way using examples. Tasks: Create a static library and a dynamic library, providing the HelloFunc function for use in other programs, which outputs the string ‘Hello World!’ to the terminal. Install header files and shared libraries. Write … Read more

Basics of GCC Compilation

Basics of GCC Compilation

Click on the above “Beginner Learning Vision”, choose to add Star or “Top” Heavyweight content delivered at the first time This article is reprinted from: AI Algorithms and Image Processing Data Preparation ❝ To facilitate demonstration and explanation, here are a few simple files prepared in advance: test.cpp test.h main.cpp The contents of the files … Read more

From Beginner to Expert: Comprehensive Guide to Linux Soft and Hard Links and Dynamic and Static Libraries

From Beginner to Expert: Comprehensive Guide to Linux Soft and Hard Links and Dynamic and Static Libraries

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇1000-person technical exchange QQ group, note [public account] for faster approval Soft and Hard Links Difference between Soft and Hard Links: Soft Link: It is an independent file with its own inode and inode number. Hard Link: It is not an independent file; it … Read more

Accelerate Python Programs Using Rust

Accelerate Python Programs Using Rust

Hey everyone! Today we’re going to talk about something exciting, Python slow? Not at all! I have always thought that Python is a great language, it’s clean and elegant, and the development efficiency is top-notch. But when it comes to performance-sensitive areas, the speed can really make you question life. Don’t worry, today I’m going … Read more

Setting Dynamic Library Path Parameters in Makefile

Setting Dynamic Library Path Parameters in Makefile

Table of Contents 1. Makefile Dynamic Library Related 1.1 Libs Variable 1.2 LDFLAGS Variable 1.3 Differences Between the Two 2. Configuration Methods 2.1 Specifying Library Path During Compilation 2.2 Specifying Library Path During Runtime 3. Testing 1. Makefile Dynamic Library Related 1.1 Libs Variable In a Makefile, Libs is typically a variable used to store … Read more

A Universal Makefile Template for Various Scenarios

A Universal Makefile Template for Various Scenarios

1. Introduction For development on Windows, many IDEs come with integrated compilers, such as Visual Studio, providing a “one-click compile” feature. After coding, you only need one operation to compile, link, and generate the target file. Linux development is different from Windows; typically, the gcc/g++ compiler is used on Linux. If you are developing Linux … Read more

Sharing Common Makefile Templates

Sharing Common Makefile Templates

Original: https://blog.csdn.net/qq_20553613/article/details/90649734 Hello everyone, I am ZhengN. This time I bring you three Makefile templates: compiling executable programs, compiling static libraries, and compiling dynamic libraries. Related past articles: Overview of Common Makefile Basics! 1. Introduction For development on Windows, many IDEs integrate compilers, such as Visual Studio, providing a “one-click compile” feature, where after coding, … Read more

Keil MicroLib vs Standard C Library

Keil MicroLib vs Standard C Library

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | strongerHuang Beginners use Keil to learn microcontrollers, and when using serial printf for output, they usually enable the built-in MicroLib: Recently, I saw readers discussing the topic of Keil’s MicroLib and the standard C library, so today I will … Read more

Common Makefile Templates for Linux Development

Common Makefile Templates for Linux Development

Original: https://blog.csdn.net/qq_20553613/article/details/90649734 1. Introduction For development on Windows, many IDEs integrate compilers, such as Visual Studio, which provide a “one-click compile” feature. After coding, a single operation can complete the compilation, linking, and generation of target files. Linux development differs from Windows; typically, the gcc/g++ compiler is used. If developing Linux programs for ARM, the … Read more

Common Makefile Templates for Development

Common Makefile Templates for Development

Original: https://blog.csdn.net/qq_20553613/article/details/90649734 Introduction For development on Windows, many IDEs have integrated compilers, such as Visual Studio, which provides a “one-click compile” feature. After coding is complete, a single operation is all that’s needed to compile, link, and generate the target file. Linux development differs from Windows. The gcc/g++ compiler is generally used on Linux, and … Read more