Home » Developer & Programmer » Precompilers, OCI & OCCI » Proc on Windows 2000
icon5.gif  Proc on Windows 2000 [message #118844] Mon, 09 May 2005 04:49 Go to next message
chanderpa
Messages: 7
Registered: May 2005
Location: India
Junior Member
Hi all,

Can anyone tell me how to compile & Run proc programs(.pc) on Windows 2000 advanced server

Thanks
CPA
Re: Proc on Windows 2000 [message #118927 is a reply to message #118844] Mon, 09 May 2005 14:17 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
They need to be precompiled with the PRO*C precompiler. Afterwards you'll get a C program, that needs to be compiled again (by a C compiler) to an EXE.

MHE
Re: Proc on Windows 2000 [message #118982 is a reply to message #118927] Tue, 10 May 2005 02:33 Go to previous messageGo to next message
chanderpa
Messages: 7
Registered: May 2005
Location: India
Junior Member
Thanks a lot Maaher

I've got the point. But can you tell me is there any restriction on the version of C compiler or we can use any C compiler like Turbo C etc.

Second thing, i had read somewhere on web that first we need to compile the .pc to .c using Pro*c/c++ utility shipped with Oracle setup then compile .c file with proc.exe shipped with oracle setup.
can u tell me more about it.

Regards
Chander

[Updated on: Tue, 10 May 2005 02:43]

Report message to a moderator

Re: Proc on Windows 2000 [message #119032 is a reply to message #118982] Tue, 10 May 2005 06:25 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Frank Naudé ("founding father" of this site) has written some excellent faqs. On of them addresses precompilers:
http://www.orafaq.com/faqpro.htm

You were told right. You'll need the precompiler to generate a .C program. I believe it is to be selected in the Oracle Universal Installer.

MHE
Re: Proc on Windows 2000 [message #119518 is a reply to message #119032] Fri, 13 May 2005 01:45 Go to previous messageGo to next message
chanderpa
Messages: 7
Registered: May 2005
Location: India
Junior Member
Many Many thanks MHE Cool

Your guidelines worked.

Thanks a lot Once Again
Chander
Re: Proc on Windows 2000 [message #259130 is a reply to message #119032] Tue, 14 August 2007 08:49 Go to previous messageGo to next message
santoshyadein
Messages: 3
Registered: August 2007
Junior Member
can any body tell me where can i get Pro*C/C++ Precompiler and
how to compile the program i`m using turbo c compiler.

[Updated on: Tue, 14 August 2007 08:51]

Report message to a moderator

Re: Proc on Windows 2000 [message #259156 is a reply to message #259130] Tue, 14 August 2007 09:38 Go to previous messageGo to next message
Michel Cadot
Messages: 68641
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Depending on your version on Oracle Server CD, on client CD or on Companion CD.

You have to search in your turbo C compiler documentation to know how to call a precompiler before compilation step.
If it can't then you have 2 steps: 1) call Pro*C precompiler then 2) call your C compiler.

Regards
Michel
icon7.gif  Re: Proc on Windows XP/98 [message #261934 is a reply to message #259156] Fri, 24 August 2007 01:54 Go to previous message
santoshyadein
Messages: 3
Registered: August 2007
Junior Member
Sir/madam,
Plz help me....
I have got turbo c compiler and windows XP/98, how to compile the Embedded Pl/sql c programs. I comlied the one program with .pc extension using turbo c compiler but it is throwing Declaration syntax error.
I have do any configuration or changes in any file of oracle and how to include more than header files, if they are in differene directories
for example: D:\src\include\files and C:\oracle\..\precomp\include\files
I have given the path of where turbo c compiler header files are available, in directory option of turbo c compiler. How do this & how to compile the programs


Plz help me sir/madam
Previous Topic: SELECT, IN bind, OUT bind
Next Topic: pro*c :Segmentation fault
Goto Forum:
  


Current Time: Thu Apr 18 10:43:24 CDT 2024