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

From Rob Sargent
Subject Re: collect2: error: ld returned 1 exit status
Date
Msg-id 050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com
Whole thread Raw
In response to collect2: error: ld returned 1 exit status  (William Torrez Corea <willitc9888@gmail.com>)
Responses Re: collect2: error: ld returned 1 exit status
List pgsql-general


On Nov 26, 2022, at 3:43 PM, William Torrez Corea <willitc9888@gmail.com> wrote:


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

--

And do you have at hand why the loader (ld) failed?

pgsql-general by date:

Previous
From: William Torrez Corea
Date:
Subject: collect2: error: ld returned 1 exit status
Next
From: William Torrez Corea
Date:
Subject: Re: collect2: error: ld returned 1 exit status