Re: Pro*C and C++ (?)

From: Almut Herzog <al-her_at_sectra.se>
Date: 1996/06/03
Message-ID: <31B282C3.3588_at_sectra.se>#1/1


Tom Foottit wrote:
>
> Hi all,
>
> I am working with Oracle7 7.2.2.3.0 on Unix (IRIX 5.3). I have been
> developing Pro*C applications for over a year, but recently I decided to
> try some C++. The version of Pro*C that comes with 7.2.2.3.0 even installs
> some Pro*C C++ demo files in the $ORACLE_HOME/proc/demo directory.
> However, I have no idea how to comple them! Pro*C just dies when it
> encounters C++ code.
>
> I have heard that there is a command line option to get Pro*C to generate
> C++ friendly code. However some FAQs that I have read seem to say that
> Pro*C will not do C++ code. Are they outdated?
>
> Thanks in advance for any help/advice you can give,
>
> Tom
>
> _____________________________________________________________________
> Tom Foottit Computer Systems Engineering
> tfoottit_at_chat.carleton.ca Carleton University

Check the version of your Pro*C (shows when pre-compiling). Pro*C 2.1 supports C++ code when you set the option CODE=CPP. (The Makefile in your samples directory should contain all you need)

-- 
Almut Herzog
SECTRA-Imtec AB                     e-mail: al-her_at_sectra.se
Teknikringen 2                      voice:  ++46 13 235221
583 30 Linkoping                    fax:    ++46 13 212185
SWEDEN
Received on Mon Jun 03 1996 - 00:00:00 CEST

Original text of this message