Subject Re: [firebird-support] working with ibase.h
Author Dimitry Sibiryakov
On 30 Jan 2004 at 2:33, german aracil boned wrote:

>gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -O0 -g3 -Wall -c ibstart.c
>/bin/sh ../libtool --mode=link gcc -O2 -O0 -g3 -Wall -o x ibstart.o x.o
>main.o
>gcc -O2 -O0 -g3 -Wall -o x ibstart.o tlnote.o main.o
>ibstart.o(.text+0x7a): In function `Construc_database_parameter':
>/svr/program/tlsystem/c/x/x/ibstart.c:33: undefined reference to
>`isc_expand_dpb'

Add '-lfbclient'. Linker can't find symbols, exported from FB
client library.

>And declaration in ibase.h for this function exist:
>
>void ISC_EXPORT_VARARG isc_expand_dpb (char ISC_FAR * ISC_FAR *,
> short ISC_FAR *,
> ...);
>
>but.. "..." ? what is it ?

Variable number of parameters. BTW, using of isc_expand_dpb is
deprecated. API programs must form dpb by hands.

>and other error compiling:
>
> dpb = dpb_buffer;
> *dpb++ = isc_dpb_version1;
> *dpb++ = isc_num_buffers;
>
>isc_num_buffers don't exist in ibase.h
>
>This is a sample extract from api guide.

Another documentation bug. It must be isc_dpb_num_buffers.

SY, Dimitry Sibiryakov.