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.


I have a problem with building the code in SQLANYWHERE12/sdk/dbcapi/examples/.

I keep getting the error: undefined reference to 'sqlany_initialize_interface

What have I done: - Create new c++ project in Eclipse
- Copied dbcapi_isql.cpp content to eclipse project
- Added include paths (sdk/include, sdk/dbcapi, sdk/c )
- Added lib search path (lib32 )
- Try to build project, which fails: "undefined reference to 'sqlany_initialize_interface..."

Note that if I remove any call to sacapidll.h it builds fine. I have also managed to run and connect to a sqlanywhere database using the administrator, so the system is properly configured.

Environment: Linux 32bit ubuntu 10.04 LTS, Eclipse Juno Release CDT.

I will appreciate any help to solve this matter.

asked 14 Dec '12, 08:51

KennethS's gravatar image

accept rate: 0%

The definition for sqlany_initialize_interface is in the \SDK\dbcapi\sacapidll.c file, which is one directory up. This file needs to be compiled with the samples (i.e. dbcapi_isql.cpp )

permanent link

answered 14 Dec '12, 10:54

Jeff%20Albion's gravatar image

Jeff Albion
accept rate: 25%

edited 18 Dec '12, 10:49

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 14 Dec '12, 08:51

question was seen: 2,696 times

last updated: 18 Dec '12, 10:49