Thread: ecpg and C++

ecpg and C++

From
"Peter L. Berghold"
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks,

If I wanted to embed SQL code in a C++ file is there a way to use ecpg
to generate the proper C++ files?


- --
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Peter L. Berghold                                     Peter@Berghold.Net
"Those who fail to learn from history are condemned to repeat it."
AIM: redcowdawg        Yahoo IM: blue_cowdawg              ICQ: 11455958
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC6Uj4UM9/01RIhaARAhQpAJ9he3KkW7MvbR3y/Og1fsiVA6tIBgCdFFUk
oUY57FLKV4SCrMT65NkawzY=
=Aohq
-----END PGP SIGNATURE-----

Re: ecpg and C++

From
Michael Meskes
Date:
On Thu, Jul 28, 2005 at 05:07:04PM -0400, Peter L. Berghold wrote:
> If I wanted to embed SQL code in a C++ file is there a way to use ecpg
> to generate the proper C++ files?

Sorry for the late answer, but I have been on vacation and some business
trips, so I'm just catching up on my mail backlog.

What exactly do you want to get and do not? ecpg is supposed to be a C
precompiler, but it should at least accept most C++ stuff as well. That
of course means that it is output as read, so remains C++.

The internal code produced remains C of course unless you implement a
different output engine.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!