Subject Howto compile Firebird C-API examples
Author christian.moelders
Hi!

I am using Ubuntu 11.10 and try to compile the firebird C-API examples.
I does not know what is wrong in my command:

gcc -L/usr/lib -lfbclient -I../include api1.c

Output is:

/tmp/ccJYITK7.o: In function `main':
api1.c:(.text+0xd4): undefined reference to `isc_dsql_execute_immediate'
api1.c:(.text+0xe8): undefined reference to `isc_sqlcode'
api1.c:(.text+0x15f): undefined reference to `isc_commit_transaction'
api1.c:(.text+0x194): undefined reference to `isc_detach_database'
api1.c:(.text+0x1c2): undefined reference to `isc_attach_database'
api1.c:(.text+0x21f): undefined reference to `isc_start_transaction'
api1.c:(.text+0x259): undefined reference to `isc_dsql_execute_immediate'
api1.c:(.text+0x299): undefined reference to `isc_commit_transaction'
api1.c:(.text+0x2cf): undefined reference to `isc_start_transaction'
api1.c:(.text+0x309): undefined reference to `isc_dsql_execute_immediate'
api1.c:(.text+0x346): undefined reference to `isc_commit_transaction'
api1.c:(.text+0x369): undefined reference to `isc_detach_database'
/tmp/ccJYITK7.o: In function `pr_error':
api1.c:(.text+0x3c3): undefined reference to `isc_print_status'
api1.c:(.text+0x3cf): undefined reference to `isc_sqlcode'

The installed packeages are
- firebird2.5-dev
- firebird2.5-examples
- firebird2.5-superclassic

Does anyone knows what is wrong or which library is missing?

Thanks!