The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

Hi,

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

KennethS
31113
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
10.7k171174
accept rate: 24%

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

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:

×17

question asked: 14 Dec '12, 08:51

question was seen: 845 times

last updated: 18 Dec '12, 10:49