Header files and libraries (Kevin Lynch)

  Рет қаралды 97,206

Northwestern Robotics

Northwestern Robotics

Күн бұрын

For more information, see nu32.org. This video is a supplement to the book "Embedded Computing and Mechatronics with the PIC32 Microcontroller," Lynch, Marchuk, and Elwin. It is part of Northwestern University's ME 333 Introduction to Mechatronics.
L-comp: Say you have a header file header.h, and inside it it has the statement
float HelperFloat;
Then this header is included by both file1.c and file2.c. These compile successfully to file1.o and file2.o. When these two codes are linked into a single executable, though, the linker fails. Explain why.

Пікірлер
why do header files even exist?
10:53
Low Level
Рет қаралды 432 М.
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Code Libraries - Computerphile
8:45
Computerphile
Рет қаралды 93 М.
Header Issues: Guards, Name Mangling, and extern "C"
8:32
Jacob Sorber
Рет қаралды 79 М.
Multiple Files in C (Header and Source Files)
26:07
Jonathan Muckell
Рет қаралды 18 М.
What are Include Guards in C?
13:26
CodeVault
Рет қаралды 1,7 М.
Static vs. Shared Libraries
11:00
Dave Xiang
Рет қаралды 65 М.
C++ Header Files
15:10
The Cherno
Рет қаралды 736 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 404 М.
Write Better Code!  |  How to Create Shared Libraries in C/C++
13:59
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН