Re: Question: Can I embed SQL in C++
Posted in 1992
From: (Jennifer Heggie) To: uunet!snide.com!dave.snyder Date: Wed, 7 Oct 92 17:11:04 PDT In-Reply-To: <199210071956.AA04403@das13.snide.com>; from "Dave Snyder" at Oct 7, 92 3:55 pm The grocery chain Kash 'n Karry, located in Florida, uses the C++ development environment provided by ObjectCenter from CenterLine Software to develop C++ code with esql/c from Informix--successfully. Send me email if you'd like an article on the subject. Jennifer Heggie Informix Software (jenh@informix.com) > Quoting Low Chee Meng (KSL)... > } > } I would like to know if anybody has any experience/success writing > } embedded SQL statements inside a C++ program. > } > } We have an Informix database and a ESQL pre-processor meant > } for C. According to the local agent from Informix, the SQL > } pre-processor works only on C files, not C++ files. > } We intend to use GCC as our C++ compiler, but we do not know > } how to make the pre-processor work with GCC. > } > } Is there any way to work around the abovementioned problem? > } > To make the ESQL/C pre-processor work with gcc, do this: > 1) vi $INFORMIXDIR/bin/esql > 2) Change the "cc" near the bottom of the file to "gcc" > 3) save your changes > > As for the C++ thing, you're on your own. > > DAS > -- > David Snyder @ Snide Computer Services - Folcroft, PA Current Release > is db4glgen-3.7 > UUCP: ..!uunet!das13!dave INTERNET: dave.snyder@snide.com > -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% William Daul Advanced Support INFORMIX SOFTWARE INC. 4100 Bohannon Dr. (415) 926-6488 - wk Menlo Park, CA. 94025 uunet!infmx!billd or billd@informix.com