Home » Developer & Programmer » Precompilers, OCI & OCCI » PROC compilation (oracle 9i)
PROC compilation [message #450342] Tue, 06 April 2010 09:11 Go to next message
csprog
Messages: 10
Registered: March 2010
Location: Chennai
Junior Member
Hi,

i want to compile oe proc c file in proc compiler.

-> i selected the input file sample.pc in the input column.
-> output coulmn automatically displayed the output file name as sample.c.
-> then i clicked the precompile option.
-> i got a message as precompilation finished.
-> but i couldnt find the sample.c file anywhere.

what shall i do now? can anyone please help me on this?

Thanks in advance.
Re: PROC compilation [message #450354 is a reply to message #450342] Tue, 06 April 2010 11:21 Go to previous messageGo to next message
Michel Cadot
Messages: 67883
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
What is "oe proc c file"?

Regards
Michel
Re: PROC compilation [message #450405 is a reply to message #450354] Wed, 07 April 2010 01:05 Go to previous messageGo to next message
csprog
Messages: 10
Registered: March 2010
Location: Chennai
Junior Member
sorry that is 'one proc file'.. typing mistake.
Re: PROC compilation [message #450462 is a reply to message #450405] Wed, 07 April 2010 07:28 Go to previous messageGo to next message
csprog
Messages: 10
Registered: March 2010
Location: Chennai
Junior Member
Hi,

i've found the reason why the prcompilation failed..

i didnt configure the file "pcscfg.cfg" in $ORACLE_HOME/precomp/admin

How does one go about configuring & customizing " pcscfg.cfg " in $ORACLE_HOME/precomp/admin for one's enviornment before using Pro*C/C++.

Can anyone please explain with example of the possible contents of pcscfg.cfg file if possible

Thanks in advance.
Re: PROC compilation [message #450469 is a reply to message #450462] Wed, 07 April 2010 07:50 Go to previous messageGo to next message
Michel Cadot
Messages: 67883
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Pro*C/C++ Programmer's Guide
Chapter 10 Precompiler Options
Section Precompiler Options
Paragraph Configuration Files

Regards
Michel
Re: PROC compilation [message #450993 is a reply to message #450342] Mon, 12 April 2010 01:02 Go to previous messageGo to next message
csprog
Messages: 10
Registered: March 2010
Location: Chennai
Junior Member
Hi,

while precompiling .pc program am getting an error,

System default option values taken from: D:\oracle\product\9.2.0.1\client_1\precomp\admin\pcscfg.cfg
PCC-F-02104, Unable to connect to Oracle

could you please tell me what are all the options we need to enter into the file pcscfg.cfg.

In my system pcscfg.cfg is only having one line as follows.

define=(WIN32_LEAN_AND_MEAN)

Thanks in advance.
Re: PROC compilation [message #450998 is a reply to message #450993] Mon, 12 April 2010 01:19 Go to previous message
Michel Cadot
Messages: 67883
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Could you please read the link I provided, click on the link of "See also" section, read the possible options, especially "auto_connect" and "userid" ones.

Yo have to read the book if you want to use Pro*C.

Regards
Michel
Previous Topic: Using 'Host Arrays' in the 'WHERE' clause
Next Topic: Pro*C Compiler errors on C Code.
Goto Forum:
  


Current Time: Wed Jun 16 12:27:39 CDT 2021