You will find so many articles on this concept. But I want to add this to my blog as a starting point to understand the future posts on Linux internals, Linux driver programming and Linux kernel most of them require C programming and debugging skills. This post is just beyond simple compilation of C/C++ code using gcc and g++. We will discuss about the following points in this post at a very high level:
- Including external headers
- Including external libraries
- Static and Dynamic linking
- Building a shared library
- Little bit of debugging
Compiling simple program using gcc and g++
Let’s start with a simple C/C++ program compilation using gcc and g++.