O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

External Files (Header Files)

The final piece of the programming jigsaw puzzle involves the external files (or libraries) which you need to allow the application to interface with the system. These cannot exist in isolation, because the compiler and linker do not necessarily have any knowledge of the operating system or anything else that the programmer wishes to interface with.

So you need to provide definitions that tell the compiler what the library functions look like and how the programmer is allowed to interact with them. This allows the compiler to check that the programmer has used the library functionality correctly, on the one hand, and provide a way for the linker to know how to link the library objects with the other application code. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required