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.
See http://stackoverflow.com/q/45135/269126 (Linker order - GCC) for an explanataion; skip the (wrongly) accepted answer by stimms, see the answers by Johannes Schaub, casualcoder and Lumi instead. -- Michael Ludwig
