Re: [GENERAL] Compile - Mailing list pgsql-general

From Sergei Chernev
Subject Re: [GENERAL] Compile
Date
Msg-id 000c01be67d0$e70d0040$59d17cc1@ser.cnit.nsu.ru
Whole thread Raw
List pgsql-general
>Hi, I'm using PostgreSQL running under Linux and I must to know the
>command line to compile my program and link  with libpq.
Here is peace of my Makefile:
CC=gcc
CFLAGS=-Wall
INCLUDEDIR=/usr/local/pgsql/include
LIBDIR=/usr/local/pgsql/lib
LIBOPTION=-lpq

progname: main.cxx
    $(CC) -o program_name main.cpp $(CFLAGS) -I$(INCLUDEDIR) -L$(LIBDIR)
$(LIBOPTION)

-----------------
Sergei Chernev
Internet: ser@nsu.ru
Phone: +7-3832-397354



pgsql-general by date:

Previous
From: "Andrei de Oliveira Mosman"
Date:
Subject: Compile
Next
From: Simon Drabble
Date:
Subject: Re: [GENERAL] Compile