dbTalk Databases Forums  

Anyone out there successfully using Pro*C/C++ in C++ mode?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Anyone out there successfully using Pro*C/C++ in C++ mode? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ramon F Herrera
 
Posts: n/a

Default Anyone out there successfully using Pro*C/C++ in C++ mode? - 10-04-2009 , 09:06 AM






So far I had been mostly satisfied with Pro*C/C++. It is a huge
improvement from by previous programming environment (OCI. I can't
believe I ever programmed in that assembly language). All my programs
have been written written in C so far. However, since I have been
known to get myself into trouble :-) I decided to try the C++ side of
Pro*C/C++, to take it for a spin.

Long story short: It was a bad decision, and I decided to go back to
good ole' C.

Reasoning:

(1) That is not real C++. I use C++ for the convenience of 'string',
for instance, and the pre-compiler forces me to use some strange (from
the C++ programming language viewpoint) VARCHARs and declare things
inside some weird blocks.

(2) I have been unable to pass the linking stage on any non-trivial
app. The most I have done is to run the provided examples.

(3) Even in C, a very simple programming language, I have found the
Oracle implementation to be rather primitive (compared to gcc). I
shudder to think the kinds of mess I would get myself into if I tried
to uses classes.

I guess the follow-up question is: Has anyone out there been able to
use classes in conjunction to Pro*C/C++? I highly doubt it.

Bonus question: My Oracle version is 10g. Has Pro*C/C++ improved much
along these 5 years? I am considering the perennial question: to
upgrade or not to upgrade?

TIA,

-Ramon

Reply With Quote
  #2  
Old   
Noons
 
Posts: n/a

Default Re: Anyone out there successfully using Pro*C/C++ in C++ mode? - 10-05-2009 , 03:15 AM






Ramon F Herrera wrote,on my timestamp of 5/10/2009 12:06 AM:



Quote:
(3) Even in C, a very simple programming language, I have found the
Oracle implementation to be rather primitive (compared to gcc). I
shudder to think the kinds of mess I would get myself into if I tried
to uses classes.
I was not aware Oracle had a C compiler implementation?


Quote:
I guess the follow-up question is: Has anyone out there been able to
use classes in conjunction to Pro*C/C++? I highly doubt it.
Nope, never bothered. C++ is most definitely not on as a OO language, no point
in wasting time with it. If I wanted to use a OOL, C++ would be my last choice.

Quote:
Bonus question: My Oracle version is 10g. Has Pro*C/C++ improved much
along these 5 years? I am considering the perennial question: to
upgrade or not to upgrade?

It hasn't changed much except for optimisations to do with the client-side cache
and so on. And that's a good thing, IMHO. Doesn't mean one should not upgrade
past 10g, if nothing else to get the latest on the db. If it doesn't cause
compatibility problems with current applications, I'm all for it.

Reply With Quote
  #3  
Old   
Till Eulenspiegel
 
Posts: n/a

Default Re: Anyone out there successfully using Pro*C/C++ in C++ mode? - 10-05-2009 , 11:08 AM



On Mon, 05 Oct 2009 18:15:50 +1000, Noons wrote:

Quote:
I was not aware Oracle had a C compiler implementation?


Yes it does. It's called "SUN C Compiler". You can find out more here:

http://developers.sun.com/sunstudio/

--
A camel is a horse designed by a committee.

Reply With Quote
  #4  
Old   
Noons
 
Posts: n/a

Default Re: Anyone out there successfully using Pro*C/C++ in C++ mode? - 10-07-2009 , 06:44 AM



Till Eulenspiegel wrote,on my timestamp of 6/10/2009 2:08 AM:
Quote:
On Mon, 05 Oct 2009 18:15:50 +1000, Noons wrote:

I was not aware Oracle had a C compiler implementation?



Yes it does. It's called "SUN C Compiler". You can find out more here:

http://developers.sun.com/sunstudio/

The purchase of Sun is not finalized yet so it is incorrect to label anything
Sun as Oracle's, particularly from the historical point of view.

Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Anyone out there successfully using Pro*C/C++ in C++ mode? - 11-18-2009 , 09:13 AM



Noons wrote:
Quote:
Ramon F Herrera wrote,on my timestamp of 5/10/2009 12:06 AM:



(3) Even in C, a very simple programming language, I have found the
Oracle implementation to be rather primitive (compared to gcc). I
shudder to think the kinds of mess I would get myself into if I tried
to uses classes.

I was not aware Oracle had a C compiler implementation?


They don't - it's a C (or Cobol, or Fortran) preprocessor, which
translates you sql-statements into inline C compliant SQL calls.

Then, pull the outcome through your favorite C/C++ compiler.
Been a long time since... TI System V (SVR4), Oracle V5.
RPT/RPF could not deliver...
--

Regards,
Frank van Bortel

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.