collect2: error: ld returned 1 exit status - Mailing list pgsql-general

From William Torrez Corea
Subject collect2: error: ld returned 1 exit status
Date
Msg-id CAGiORHdght_E931whpv-W0UjxfnLE2tDBWZ9AN13rxHGdRn+9Q@mail.gmail.com
Whole thread Raw
Responses Re: collect2: error: ld returned 1 exit status  (Rob Sargent <robjsargent@gmail.com>)
List pgsql-general
I am using libpq: the C application programmer's interface to PostgreSQL.

Compile the code:

sudo cc -o testprog testprog1.o testprog2.o -L/usr/local/pgsql/lib -lpq

But i get the following error:

collect2: error: ld returned 1 exit status

--

With kindest regards, William.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀


pgsql-general by date:

Previous
From: Andrus
Date:
Subject: WAL contains references to invalid pages in hot standby
Next
From: Rob Sargent
Date:
Subject: Re: collect2: error: ld returned 1 exit status