c++ - What do linkers do? - Stack Overflow
You can now access your Teams at stackoverflowteams.com. Teams no longer appear in the left sidebar on stackoverflow.com. Check your email to learn more about these changes. Find centralized, trusted content and collaborate around the technologies you use most. Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Get early access and see previews of new features. I've always wondered. I know that compilers convert the code you write into binaries but what do linkers do? They've always been a mystery to me. I roughly understand what 'linking' is. It is when references to libraries and frameworks are added to the binary. I don't understand anything beyond that. For me it "just works". I also understand the basics of dynamic linking but nothing too deep. Could someone explain the terms? To understand linkers, it helps to first understand what happens "under the hood" when you convert a source file (such as a C or C++ file) into an
c++ - What do linkers do? - Stack Overflow The 2026 Annual Developer Survey is live— take the Survey today! Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal What do linkers do? Ask Question Asked 16 years ago Modified 3 years, 7 months ago Viewed 101k times 215 I've always wondered. I know that compilers convert the code you write into binaries but what do linker
related reading
- How to execute an object file: Part 1blog.cloudflare.com
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- Learn C++ – Skill up with our free tutorialslearncpp.com
- Struct padding in C++ - Stack Overflowstackoverflow.com
- C++ Memory alignment - should we care? - Stack Overflowstackoverflow.com
- Get better at programming by learning how things workjvns.ca
- What Every C Programmer Should Know About Undefined Behavior #2/3 - The LLVM Project Blogblog.llvm.org
- How Compiler Explorer Works in 2025 — Matt Godbolt’s blogxania.org
- Many can write faster asm than the compiler, yet don't. Why? — LessWronglesswrong.com
- What even is compiler correctness?williamjbowman.com
- Writing a C compiler in 500 lines of Pythonvgel.me
- programming practices - How to comprehend abstraction in code? - Software Engineering Stack Exchangesoftwareengineering.stackexchange.com