From: | Howie <caffeine(at)toodarkpark(dot)org> |
---|---|
To: | Héctor Morales <hector(dot)morales(at)edisa(dot)com(dot)gt> |
Cc: | "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] Problem with compiled C |
Date: | 1999-08-12 09:18:31 |
Message-ID: | Pine.LNX.3.96.990812091645.8919T-100000@rabies.toodarkpark.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 11 Aug 1999, [iso-8859-1] Hctor Morales wrote:
> Charles Tassell wrote:
> >[SNIP]
> > To compile C programs you need to add the pq library, so use something like:
> > gcc -o test test.c -lpq
> [SNIP]
> Excellent pgaccess work is great.
>
> So when I compiled my program in C use
> gcc -o prueba prueba.c -llibpq.so
>
> responde
> /usr/bin/ld: cannot open -llibpg.so : no such file or directory
> collect2: ld returned 1 exit status
>
> I probe with
> gcc -o prueba prueba.c -llibpq.so -L/usr/lib
gcc -o prueba prueba.c -L/usr/lib -lpq
-l tells gcc ( the linker, actually ) to look for lib<whatever follows the
-l>. ie: -lm == libm, -lpq == libpq.
-llibpq.so == liblibpq.so. obviously that file doesnt exist.
more information can be obtained via 'info gcc' or 'man gcc'.
---
Howie <caffeine(at)toodarkpark(dot)org> URL: http://www.toodarkpark.org
"The distance between insanity and genius is measured only by success."
From | Date | Subject | |
---|---|---|---|
Next Message | Cesar Lombao | 1999-08-12 11:02:32 | Re: [GENERAL] Problem with compiled C |
Previous Message | amy cheng | 1999-08-12 06:57:06 | v6.5 foreign key trigger reposted with details |