Tomasz Tyrakowski schrieb am 16.08.2012 um 21:56 (+0200):
> On 2012-08-16 13:24, christian.moelders wrote:
> > 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
> 
> Just put -lfbclient at the end and you'll be fine.

Same story on Windows/MinGW:

cd D:\Opt\Firebird25\examples\api
gcc -LD:\Opt\Firebird25\lib api1.o -lfbclient_ms
: fine
gcc -LD:\Opt\Firebird25\lib -lfbclient_ms api1.o
api1.o:api1.c:(.text+0xd0): undefined reference to 
`isc_dsql_execute_immediate@28'
api1.o:api1.c:(.text+0xe2): undefined reference to `isc_sqlcode@4'
…
-- 
Michael Ludwig

Reply via email to