Q

How does the Pro*C compiler work?

How does the Pro*C compiler work? Please give details.
To be technically correct, Pro*C is a precompiler. With Pro*C, you code some C statements that access the database. When you are done, you will have a source code file (we'll call it program1.cpp). You will need to run this program through the Pro*C precompiler before it can be compiled. That is done by invoking the Pro*C precompiler on the command line as follows:

proc program1.cpp

This will create an output file with your precompiled source code. Take this new file and compile it with your C compiler. For step-by-step instructions, examine these Oracle docs:

Pro*C/C++ Getting Started

Pro*C/C++ Programmer's Guide

These documents contain step-by-step examples along with sample code.

This was last published in January 2005

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close