RE: [INTERFACES] Linking Errors - Mailing list pgsql-interfaces

From Ansley, Michael
Subject RE: [INTERFACES] Linking Errors
Date
Msg-id 1BF7C7482189D211B03F00805F8527F748C476@S-NATH-EXCH2
Whole thread Raw
In response to [INTERFACES] Linking Errors  (Mike <mfre@telusplanet.net>)
List pgsql-interfaces
>> 2. When I set the -lpq and -lpq++ I know it is suppose to be including
>> those libraries but do I need to tell the system where those libraries
>> are?  How does it know?
You add a -L switch to the command line to add library paths, and a -I
switch for include paths:

c++ -o test -L$PGHOME/lib -I$PGHOME/include -lpq -lpq++ test.c

or something...


MikeA


pgsql-interfaces by date:

Previous
From: Tibor Laszlo
Date:
Subject: psql - odbc - bde - data dictionary
Next
From: Byron Nikolaidis
Date:
Subject: Re: [INTERFACES] Re: ODBC drive strange behavior