on 2012 Dec 14 8:51 AM
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.
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
)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.