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 in order to access the factorial function. To accomplish this, you need to perform the following steps:
- Select 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 in the Project pane and click on Add Library.... You can now choose a library in your build tree, a library outside your build tree, an external library on your system such as the Unix math library,
fftmpeg, or another library that you've ...