For Pro*C


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting For Pro*C
# 1  
Old 03-31-2006
Error For Pro*C

I have write a Pro*C file. How i will compile and excute that Pro*C file. Please tell me the command. Suppose my file name is test.pc
# 2  
Old 03-31-2006
should use demo_proc.mk

THe basic way to create proC exe is
1) proc iname=test.pc
This is the precompiling stage. This creates a file called test.c.
2) cc -c test.c -I . -I$ORACLE_HOME/precomp/public
Now you use the C compiler to create an object file. You must specify the location of the include files
3) cc -o test test.o -L $ORACLE_HOME/lib -l clntsh
This creates the excutable. You link the Oracle specified shared library through this command to your executable.

This is a clumsy way of doing things. YOu could create a makefile or use Oracle supplied demo_proc.mk($ORACLE_HOME/precomp/demo/proc) to compile. ALso check the manual of cc and if you have access to metalink.oracle.com, you can find very useful tips to compile your proc code.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Pro*C in my local PC.

Hi All, I want to write Pro*C code and compile in my local PC. I am sure my Turbo C compiler does not do that. Please help me to know: ->What all the items I need to install? ->Is there any compiler/editor where I can write Pro*C code which converts the embedded SQL to C Struct and then... (3 Replies)
Discussion started by: Ajay_84
3 Replies

2. Solaris

Makefile for PRO*C

Hi, is there anyone have any good website for creating a makefile for a PRO*C program? I have a Makefile, but don't understand what is written inside... so need to study it... pls help... (2 Replies)
Discussion started by: lsy
2 Replies

3. UNIX for Dummies Questions & Answers

pro*c coding

Hi All, I am new to pro*C. I have a select statement as select a.ename,a.sal,a.empno from emp where &n=(select count(distinct(b.sal)) from emp b where a.sal<=b.sal for this query I have to write a pro*C program. So can you please send me the complete code. Then I will foloow the same... (1 Reply)
Discussion started by: user71408
1 Replies

4. UNIX for Advanced & Expert Users

Pro*c

Hi All, Here is my requirement.. " previously I have one catalogue. Recently they released one new catalogue.No w I have to write a PRO*C scripts for the following Requirement.... The script was run to remove supplier cost price changes where the new cost equalled the old cost,and this... (0 Replies)
Discussion started by: user71408
0 Replies

5. Programming

I need a pro*c complier..

hi all, i need a pro*c compiler ...it's a freeware or castable one...if it is freeware ,then where will we get.... thanks in advance sarwan (4 Replies)
Discussion started by: sarwan
4 Replies

6. Programming

Regarding pro*c

Hi i would like learn pro*c,i need suggestion for which book is so worthful for beginners..my idea about pro*c is,using pro*c we can connect our C/C++ source with Oracle...is that correct or enything else.... Thanks in advace Sarwan (1 Reply)
Discussion started by: sarwan
1 Replies

7. Programming

books for pro c,c++

Hi i have to work with pro c,c++ , can any body help me or that which are the best books for that,and some web address where i can get suitable information, :( (4 Replies)
Discussion started by: kapilnagda
4 Replies

8. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies
Login or Register to Ask a Question