README for the HP Neoview UNIX Drivers (Upd6 R2.2)

2. Compile the sample program.
Note: All drivers are 32-bit drivers; therefore, applications need to be compiled accordingly.
On Linux:
gcc connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test
Note: The Linux driver is a 32-bit driver. If you are using an x86–64 machine, you need
to explicitly compile your appplication as a 32-bit application. For example:
gcc connect_test.cpp -m32 -L/usr/lib \
-I/usr/include/hpodbc -lhpodbc -o connect_test
On HP-UX (IA-64):
aCC -AA connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test -lm
To use cc for compiling and linking:
— Rename connect_test.cpp to connect_test.c.
— Run this command:
cc connect_test.c I/usr/include/hpodbc L/usr/lib lstd_v2
\
-lCsup -lunwind -lm -lhpodbc -o connect_test
On HP-UX (PA-RISC):
aCC -AA connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -lhppa -o connect_test -lm
To use cc for compiling and linking:
— Rename connect_test.cpp to connect_test.c.
— Run this command:
cc connect_test.c L/usr/lib I/usr/include/hpodbc \
-lhppa -lstd_v2 -lCsup_v2 -lm -lhpodbc -o connect_test
On IBM AIX®:
g++ connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test
3. If needed, modify the /etc/hpodbc/MXODSN file.
4. Run the sample program:
./connect_test -d <datasource> -u <userid> -p <password>
Installation for Neoview Release 2.0
Installation Package
Installation Instructions
Installation for Neoview Release 2.0 59