|
|
#1 |
|
Prospect
Join Date: Aug 2007
Posts: 18
|
The code below fails utterly in Xcode. Obviously, I'm new to Xcode.
![]() Have checked all the build options. Turned off ZeroLink. Set paths for postgresql82 header and library. Set custom linker option -lpq. Code:
// main.c
#include <libpq-fe.h>
int main (int argc, char * const argv[]) {
PGconn *conn = PQconnectdb(NULL);
PQfinish(conn);
return 0;
}
gcc -Wall -I/opt/local/include/postgresql82 -L/opt/local/lib/postgresql82 main.c -lpq -o hello What gives? -- stuudent Last edited by hayne; 08-04-2007 at 09:17 PM. Reason: added CODE tags |
|
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|