Include directory
Include directory
От:
pocm@rnl.ist.utl.pt (Paulo J. Matos)
Дата:
Hi all, After installing I wish to use the library libpq that comes with postgresql, I added /usr/local/pgsql/lib to my LD_LIBRARY_PATH environment variable. But what should I do so that in my C program I can do #include ? I need to make /usr/local/pgsql/include a include system directory. How can I do that? Oh, I'm running slackware linux 8.0, bash shell. Best regards, -- Paulo J. Matos : pocm(_at_)rnl.ist.utl.pt Instituto Superior Tecnico - Lisbon Software & Computer Engineering - A.I. - > http://www.rnl.ist.utl.pt/~pocm --- Yes, God had a deadline... So, He wrote it all in Lisp!
Re: Include directory
От:
Doug McNaught <doug@wireboard.com>
Дата:
pocm@rnl.ist.utl.pt (Paulo J. Matos) writes: > Hi all, > > After installing I wish to use the library libpq that comes with > postgresql, I added /usr/local/pgsql/lib to my LD_LIBRARY_PATH > environment variable. But what should I do so that in my C > program I can do #include ? I need to make > /usr/local/pgsql/include a include system directory. How can I do > that? Oh, I'm running slackware linux 8.0, bash shell. Add: -I/usr/local/pgsql/include to your compiler command line in the Makefile (usually just adding it to CFLAGS is enough). -Doug -- Let us cross over the river, and rest under the shade of the trees. --T. J. Jackson, 1863