README for the HP Neoview UNIX Drivers (R2.3)
o Run this command:
cc connect_test.c +DD64 -I/usr/include/hpodbc
-L/usr/lib/hpux64 \
-lhpodbc64 -lstd_v2 -lCsup -lunwind -lm -lhpodbc -o
connect_test
Note: When linking in the pthread library, it should be linked in
ahead of -lhpodbc.
o 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:
o Rename connect_test.cpp to connect_test.c.
o Run this command:
cc connect_test.c -L/usr/lib -I/usr/include/hpodbc \
-lhppa -lstd_v2 -lCsup_v2 -lm -lhpodbc -o connect_test
Note: When linking in the pthread library, it should be liked in
ahead of -lhpodbc.
o On IBM AIX(R):
g++ -mxaix32 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test
o On IBM AIX(R) 64 bit:
g++ -mxaix64 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc64 -o connect_test
o On Sun SPARC(R):
cc connect_test.cpp -I/usr/include/hpodbc -L/usr/lib \
-lhpodbc -o connect_test
o On Sun SPARC(R) 64 bit:
cc -xarch=v9a connect_test.cpp -I/usr/include/hpodbc -L/usr/lib \
-lhpodbc64 -o connect_test
3. If needed, modify the /etc/hpodbc/MXODSN file.
4. Run the sample program: