beautypg.com

HP XP P9500 Storage User Manual

Page 134

background image

4.

Using 64-bit FAL, compile the C program as follows:

• IBM AIX

# cc -qlanglvl=ansi -q64 —D_NO_MT -o Output file name Source file

name /usr/lib/libfal64.a

libfal64.a

= file name of FAL object module

• HP-UX

# cc -Ae +DAZ.0W —D_NO_MT -o Output file name Source file name /usr/

lib/pa20_64/libfal64.sl

libfal64.sl

= file name of FAL object module.

• Solaris

# cc xarch=v9 —D_NO_MT -o Output file name Source file name /usr/

lib/sparcv9/libfal64.so.1

libfal64.so.1

= file name of FAL object module.

• Linux

# gcc -o Output file name Source file name /usr/lib/libfal.so.1

libfal.so.1

= This specifies a file name of the object module of the File Access Library.

• Windows systems (Visual C++)

Start Developer Studio and create a new project.

1.

Copy the following three FAL files into the project folder:

dataset.h

, fal.dll, fal.lib

2.

Select Settings in the Project menu of Developer Studio.

3.

On the Project Settings panel, select the Link tab.

4.

Enter fal.lib in the object/library module field.

5.

Select the C/C++ tab in Project settings dialog.

6.

Add _NO_MT to the preprocessor definitions field.

7.

Build and execute.

Performing FAL Operations

134