cancel
Showing results for 
Search instead for 
Did you mean: 

dbcapi/examples not building

Former Member
3,000

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

jeff_albion
Advisor
Advisor

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 )