Header files and libraries (Kevin Lynch)
For more information, see http://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.
Видео Header files and libraries (Kevin Lynch) канала Northwestern Robotics
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.
Видео Header files and libraries (Kevin Lynch) канала Northwestern Robotics
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
C "Modules" - Tutorial on .h Header Files, Include Guards, .o Object Code, & Incremental CompilationStatic vs. Shared LibrariesA professional motor control system (Kevin Lynch)C pointer basics (Kevin Lynch)Header Issues: Guards, Name Mangling, and extern "C"Compiling, assembling, and linkingCode Libraries - ComputerphileHow the C++ Linker WorksC++ Header FilesGetting confident with header files in CC Programming: Makefiles“Learning to Code is Not Just for Coders” | Ali Partovi | TEDxSausalitoWhat are header files in C++ ( PROGRAMMING TUTORIAL for beginners)Seven steps to using an interrupt with the PIC32 (Kevin Lynch)How to write your own code libraries in C.PIC32 interrupt code example (Kevin Lynch)Difference between Header file and Library file in C Programming Languagemalloc, calloc, realloc, and free - Introducing Dynamic Heap Memory System Calls in C's stdlib.hHow to Create a Simple Makefile - Introduction to Makefiles