Linking against our sample library
Now, let's make an application that depends on our library. Our application will call the
factorial function in the library, statically linking to the library to access the
factorial function. To accomplish this, you need to:
- Choose Close All Projects and Editors from the File menu.
- Choose New File or Project… from the File menu, and create a new Qt console application called
MathFunctionsTest using the wizard.
- Right-click on MathFunctionsTest, and choose Add Library. You can then choose a library in your build tree, one outside your build tree, or an external library on your system like the Unix math library,
ffmpeg, or another library you've created. Choose External Library and click on Next.
- Browse to the library ...