I compile and run my C program this way:
gcc -O -o prog2 prog2.c -L/usr/local/postgres/lib
-L/usr/local/postgres/include -lecpg -lpq -lcrypt -lnsl -lsocket
-L/usr/local/kth-krb4-0.9.9/lib -lkrb -ldes -lresolv
-I/usr/local/postgres/include -I/usr/local/postgres/lib
But I know nothing about LD_LIBRARY_PATH environment variable - I just
begin to work with all this stuff.
-Margarita
On Fri, 5 Feb 1999, Matthew Hagerty wrote:
> Greetings,
>
> I am trying to get a simple C program to compile and run without having to
> define the LD_LIBRARY_PATH environment variable. First I tried this:
>
> gcc -o test -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq test.c
>
> Any insight would be greatly appreciated.
>
> Thank you,
> Matthew Hagerty
>
>
>