On Sun, Jun 18, 2023 at 09:23:22PM +0800, jian he wrote: > previously I cannot link it. with > v2-0001-Support-sending-Close-messages-from-libpq.patch. now I can > compile it, link it, but then run time error. > same c program in the first email. > when I run it ./a.out, then error: > ./a.out: symbol lookup error: ./a.out: undefined symbol: PQsendClosePrepared
If you still have problems, it seems to me that one mistake is in not updating LD_LIBRARY_PATH. It should point to a version of libpq compiled with the patch, or -lpq will not be able to resolve correctly when compiling your test program. -- Michael
signature.asc
Description: PGP signature