![Omron SYSMAC 3G8F7-CLK12-E Operation Manual Download Page 61](http://html1.mh-extra.com/html/omron/sysmac-3g8f7-clk12-e/sysmac-3g8f7-clk12-e_operation-manual_1633420061.webp)
3-2
Section
Using the C Library
45
Setting Up Visual C++ Ver. 6
Use the following procedure to set up Microsoft Visual C++ to use the C library.
Include Files
1, 2, 3...
1. Start Visual C++ Ver. 6.0 and select Tools and then Options.
2. Select the Directory Tab, set the directory being displayed to the one for the
include files, click the first empty row in the list, and then click the ... Button at
the left of the row.
3. Specify the folder in which the C library for the Support Board was installed
and click the OK Button.
The installation directory in the header file default for the C library is \Pro-
gram Files\OMRON\Controller Link\Lib.
4. Include the following line at the beginning of the program:
#include <CLK_LIB.h>
Setting Up the Library File.
1, 2, 3...
1. Start Visual C++ Ver. 6.0 and select Tools and then Options.
2. Select the Directory Tab, set the directory being displayed to the one for the
library files, click the first empty row in the list, and then click the ... Button at
the left of the row.
3. Specify the folder in which the C library for the Support Board was installed
and click the OK Button.
The installation directory in the header file default for the C library is \Pro-
gram Files\OMRON\Controller Link\Lib.
4. Open the workspace for the program being created and select Project and
then Set.
5. Select the Link Tab and input the library file name “CLK_LIB.LIB” for the ob-
ject/library module.
Refer to the user’s manual for Visual C++ or online help for information on
Visual C++ other than that for setting up the install file and library file.
Note There are sample programs provided as Visual C++ V6.0 projects that use the C
library for the Board. They can be found in the Controller Link\Sample directory
using the installation directory specified during the installation procedure.