Re: collect2: error: ld returned 1 exit status

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: William Torrez Corea <willitc9888(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: collect2: error: ld returned 1 exit status
Date: 2022-11-26 22:59:57
Message-ID: 050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Nov 26, 2022, at 3:43 PM, William Torrez Corea <willitc9888(at)gmail(dot)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?
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message William Torrez Corea 2022-11-26 23:17:42 Re: collect2: error: ld returned 1 exit status
Previous Message William Torrez Corea 2022-11-26 22:43:23 collect2: error: ld returned 1 exit status