Building an Executable

In this lesson, we'll briefly examine the final step of library usage: linking our executable with libraries.

It is only seldom necessary to link explicitly against a library. That sentence is platform dependent. For example, with the current g++ or clang++ compiler, you have to link against the pthread library to get the multithreading functionality.

Get hands-on with 1000+ tech skills courses.