Обсуждение: Problem with compiling programs

Поиск
Список
Период
Сортировка

Problem with compiling programs

От
Wayne Liang
Дата:
I am trying to compiling a program with pq database access.

Like the following:
>---------------------------------------------<
gcc pulling.cpp -lpq -lcrypt
/usr/bin/ld: cannot open -lpq: No such file or directory
collect2: ld returned 1 exit status
>---------------------------------------------<

This program was working before, I am just re-compiling, but it doesn't
work this time, I have 

>----------<
PGLIB="/usr/local/pgsql/lib" in env var

/usr/local/pgsql/lib
/usr/local/pgsql/include    in /etc/ld.so.conf

>----------<

What else am I missing?

Jason Lam