RE: [INTERFACES] Linking Errors

From: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
To: "'Mike '" <mfre(at)telusplanet(dot)net>, "'pgsql-interfaces(at)postgresql(dot)org '" <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: [INTERFACES] Linking Errors
Date: 2000-01-21 22:01:51
Message-ID: 1BF7C7482189D211B03F00805F8527F748C476@S-NATH-EXCH2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 2000-01-22 16:40:46 Re: [INTERFACES] Re: ODBC drive strange behavior
Previous Message Tibor Laszlo 2000-01-21 16:53:32 psql - odbc - bde - data dictionary