Sponsored Content
Full Discussion: For Pro*C
Top Forums Shell Programming and Scripting For Pro*C Post 302070071 by ranj@chn on Friday 31st of March 2006 05:54:21 AM
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.
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
local(n)							    [incr Tcl]								  local(n)

__________________________________________________________________________________________________________________________________________________

NAME
local - create an object local to a procedure SYNOPSIS
itcl::local className objName ?arg arg ...? _________________________________________________________________ DESCRIPTION
The local command creates an [incr Tcl] object that is local to the current call frame. When the call frame goes away, the object is auto- matically deleted. This command is useful for creating objects that are local to a procedure. As a side effect, this command creates a variable named "itcl-local-xxx", where xxx is the name of the object that is created. This vari- able detects when the call frame is destroyed and automatically deletes the associated object. EXAMPLE
In the following example, a simple "counter" object is used within the procedure "test". The counter is created as a local object, so it is automatically deleted each time the procedure exits. The puts statements included in the constructor/destructor show the object coming and going as the procedure is called. itcl::class counter { private variable count 0 constructor {} { puts "created: $this" } destructor { puts "deleted: $this" } method bump {{by 1}} { incr count $by } method get {} { return $count } } proc test {val} { local counter x for {set i 0} {$i < $val} {incr i} { x bump } return [x get] } set result [test 5] puts "test: $result" set result [test 10] puts "test: $result" puts "objects: [itcl::find objects *]" KEYWORDS
class, object, procedure itcl local(n)
All times are GMT -4. The time now is 01:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy