pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: William Torrez Corea <willitc9888@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: collect2: error: ld returned 1 exit status
Date: Sat, 26 Nov 2022 15:59:57 -0700
Message-ID: <050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com> (raw)
In-Reply-To: <CAGiORHdght_E931whpv-W0UjxfnLE2tDBWZ9AN13rxHGdRn+9Q@mail.gmail.com>
References: <CAGiORHdght_E931whpv-W0UjxfnLE2tDBWZ9AN13rxHGdRn+9Q@mail.gmail.com>



> 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?
> 

view thread (8+ messages)  latest in thread

Message-ID: <050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com>
Permalink:  ../050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com/
Also on:    postgresql.org/message-id/050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, willitc9888@gmail.com
  Subject: Re: collect2: error: ld returned 1 exit status
  In-Reply-To: <050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com>
  References: <CAGiORHdght_E931whpv-W0UjxfnLE2tDBWZ9AN13rxHGdRn+9Q@mail.gmail.com> <050D1AE9-0D5B-433D-8C82-938FB5BA3191@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox