Kbase 15173: How to Check Which C-ISAM Version is Being Run
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/07/2006 |
|
Status: Unverified
GOAL:
How to check which C-ISAM product is being run.
CAUSE:
The header file for Informix's C-ISAM product may not reflect the actual version of C-ISAM being run.
FIX:
Use this simple C program to check the Informix C-ISAM version.
/* cisver.c */
#include "isam.h"
main ()
{
printf("C-ISAM Version: %s\n", isversnumber);
}
cc -o cisver cisver.c -lisam
If you installed Informix C-ISAM according to the recommended
procedures, this should compile without a problem. If not, you may
need to add C compiler switches to help find the file "isam.h"
and the library "libisam.a".
For example:
cc -o cisver cisver.c -I$CISAM/include $CISAMLIB
where CISAM=/opt/informix6 and CISAMLIB=/opt/informix6/lib/libisam.a
Here is the output on a Solaris 2.4 machine with C-ISAM 6.0 installed:
C-ISAM Version: C-ISAM Version 6.00.UE1