
After you create a console application, the wizard creates an empty program for you. The name for the source file will be the same as the name that you chose for the project earlier. In this example, it is named MyExecRefsLib.cpp.
You must reference the static library you created to use its math routines. To do this, select References from the Project menu. From the MyExecRefsLib Property Pages dialog box, expand the Common Properties node and then click Add New Reference. For more information about the References dialog box, see Framework and References, Common Properties, <Projectname> Property Pages Dialog Box.
The Add Reference dialog box is displayed. The Projects tab lists the projects in the current solution and any libraries that you can reference. On the Projects tab, select MathFuncsLib. Click OK.
To reference the YOURLIB.h header file, you must modify the include directories path. In the MyExecRefsLib Property Pages dialog box, expand the Configuration Properties node, expand the C/C++ node, and then select General. In the Additional Include Directories property value, type the path of the MathFuncsLib directory or browse for it.
To browse for the directory path, in the property value drop-down list box, click Edit. In the Additional Include Directories dialog box, in the text box, select a blank line and then click the ellipsis button (…) at the end of the line. In the Select Directory dialog box, select the YOURLIB directory and then click Select Folder to save your selection and close the dialog box. In the Additional Include Directories dialog box, click OK.