Search Postgresql Archives

Re: collect2: error: ld returned 1 exit status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Nov 26, 2022, at 3:43 PM, William Torrez Corea <willitc9888@xxxxxxxxx> 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?


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux