collect2: error: ld returned 1 exit status

From: William Torrez Corea <willitc9888(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: collect2: error: ld returned 1 exit status
Date: 2022-11-26 22:43:23
Message-ID: CAGiORHdght_E931whpv-W0UjxfnLE2tDBWZ9AN13rxHGdRn+9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
⠈⠳⣄⠀⠀⠀⠀

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2022-11-26 22:59:57 Re: collect2: error: ld returned 1 exit status
Previous Message Andrus 2022-11-26 16:06:05 WAL contains references to invalid pages in hot standby