ash <xpi(at)aeria(dot)net> writes:
> gcc -O -pipe -Wall -g -Dbugs -I/Users/xpi/tmpsrc/lib/mutilities -L/Users/xpi/tmpsrc/lib/mutilities -Dpthreads -Ddarwin -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -lpq mutil.o maintest.c
> ld: Undefined symbols:
> _PQclear
> _PQerrorMessage
> _PQsetdbLogin
Surely the library reference must come after the files that reference
it.
regards, tom lane