In 54 Minutes, Understand the whole C and C++ compilation process
►C++ Series Playlist: • The C++ Programming Language ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: / @mikeshah ►Lesson Description: I've seen enough folks struggle with compiling in C and C++ that it is time for a full video to understand the process. As a result of understanding the compilation process, you can understand why a project should be split into smaller components, and how that makes your code faster to compile, easier to debug, and dare I say...more fun to work with! 0:00 Introduction 0:35 High Level Overview of Compilation 6:17 Simple Project Setup 10:10 Compiling 12:09 Preprocessor output 13:29 All functions are extern 14:02 Syntax error versus linking error 15:33 successful compile of multiple sources 17:02 Redefinition errors 18:30 Header Guards 20:20 Compiler at a high level 22:57 g++ syntax tree visualization 24:53 Assembly Overview and Output 28:24 Outputting object file (.o) 30:00 Compiling Files Individually 31:10 Linking o files together 32:05 objdump 34:22 Dynamically linked libraries 35:30 ldd dynamially linked shared libraries 36:35 Summary and Recap 39:36 Practical Example with SFML Library 40:45 Compiling without linking libraries error 41:54 Linking in the correct libraries 43:16 Using the -L flag to find library 44:42 PATH and environment variables for default search paths 45:58 Include Path 50:00 Fixing Include Path Errors 51:07 What your IDE is hiding from you. ►YouTube Channel: / mikeshah ►Please like and subscribe to help the channel! ►Join our free community: https://courses.mshah.io/communities/...

How 1999 Quake 3 Teaches Elite Software Engineering

How C Really Works

Back to Basics: Compiling and Linking - Ben Saks - CppCon 2021

A 50 minute Introduction to C++ and your next steps!

Learn and understand (almost) everything about the fundamentals of C++ pointers in 96 minutes

What Happens After The Compiler in C++ (How Linking Works) - Anders Schau Knatten - C++ on Sea 2023

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

2024 Update: C++ Modules - C++ Developers Get Started Today! - Andreas Weis - ACCU 2024

This Is What the Start of a Crash Looks Like

Makefiles: 95% of what you need to know

Stanislav Krapivnik: Russlands Wut kocht über – Steht ein EU-Russland-Krieg bevor?

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers

CMake Tutorial for Absolute Beginners - From GCC to CMake including Make and Ninja

why do header files even exist?

*(char*)0 = 0; - What Does the C++ Programmer Intend With This Code? - JF Bastien - C++ on Sea 2023

C Programming: Makefiles

People THINK C++ is hard; It isn't

Every Level of Reverse Engineering Explained

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

