on 2013 Nov 21 7:56 PM
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".
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
Hi All, Plz ignore my question, I got this issue resolved. Rootcause - SQLANY16 environment variable was not set.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.