Received: from golem.jpl.nasa.gov (IDENT:root@hectic-5.jpl.nasa.gov [128.149.68.207]) by hub.org (8.9.2/8.9.1) with ESMTP id BAA30989 for ; Fri, 12 Feb 1999 01:36:38 -0500 (EST) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (localhost [127.0.0.1]) by golem.jpl.nasa.gov (8.8.5/8.8.5) with ESMTP id GAA19992; Fri, 12 Feb 1999 06:36:27 GMT Sender: tgl@mythos.jpl.nasa.gov Message-ID: <36C3CBEA.CDD7ABDB@alumni.caltech.edu> Date: Fri, 12 Feb 1999 06:36:26 +0000 From: "Thomas G. Lockhart" Organization: Caltech/JPL X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: Michael Meskes CC: PostgreSQL Interfaces Subject: Re: [INTERFACES] facing problem with ecpg References: <19990212070652.A408@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > The exec sql should be there after running ecpg. ecpg is a > preprocessor. You have to feed you're source (should be named file.pgc > BTW) through ecpg before running cc. That is: > ecpg tryecpg.pgc > cc -o tryecpg tryecpg.c -lecpg -lpq Michael, could you add a short section with this info to your ecpg sgml documentation? Also, perhaps you would want to include an example on how to set up a makefile with a general production rule. - Tom