Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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's gravatar image

Vaish
90449
accept rate: 0%


Hi All, Plz ignore my question, I got this issue resolved. Rootcause - SQLANY16 environment variable was not set.

Thanks

permanent link

answered 21 Nov '13, 22:13

Vaish's gravatar image

Vaish
90449
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×260
×68
×41

question asked: 21 Nov '13, 19:55

question was seen: 2,187 times

last updated: 21 Nov '13, 22:13