Hi, I have installed SQL Anywhere 16(sa16developerlinux) in my linux 32-bit machine - Red Hat Enterprise Linux Server release 5 (Tikanga) I compiled sqlanywhere16/sdk/dbcapi/examples/connecting.c and getting the error message - "Failed to initialize the interface! Supported version = 2". My make file content is:CC=gcc CFLAGS=-I. DEPS = sacapidll.h OBJ = connecting.o sacapidll.o LIBS=-ldl %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) connecting: $(OBJ) gcc -o $@ $^ $(CFLAGS) $(LIBS) Corresponding line in connecting.c causing this error is - if( !api.sqlany_init( "MyAPP", SQLANY_API_VERSION_1, &max_api_ver )). I tried with SQLANY_API_VERSION_2 also, but still getting same error. Does anyone know how to correct this problem? Thanks asked 21 Nov '13, 19:55 Vaish |
Hi All, Plz ignore my question, I got this issue resolved. Rootcause - SQLANY16 environment variable was not set. Thanks answered 21 Nov '13, 22:13 Vaish |