> I get this error when I complie ?
> (I am not a new 'c' programmer but I am new to embedded sql)
> /usr/lib/libecpg.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status
>
> --------------------------------------------------------------------------
>
> Test Case:
> ----------
> This is what I use to compile
> gcc -g -o 2easql 2easql.c -I /usr/include/pgsql/
> -L /usr/include/pgsql/lib -lecpg -lpq
Do this:
gcc -g -o 2easql 2easql.c -I /usr/include/pgsql/
-L /usr/include/pgsql/lib -lecpg -lpq -lcrypt
^^^^^^^
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026