Re: How do I write a Pro*C Program?

From: Dave <David.W.Spencer_at_elcaro.moc>
Date: Fri, 18 Oct 2002 15:43:49 +0100
Message-ID: <3DB01E25.6060201_at_elcaro.moc>


> Thank you for your explanation. However, I'm still bit confused.
> I already have sample programs under demo directory and I'm trying to
> run for example sample1. So, the following steps I have to follow:
> 1) proc sample1
> 2) cc sample1.c
> 3) make -f demo_proc.mk build EXE=sample1 OBJS=sample1.o

 > Do I have to be under demo directory to write my code?  > And now, I should get the out put of the program.

Under normal circumstances you probably won't have write access to that directory so it would be a good idea to copy the stuff over to your home directory; that way you also keep a safe copy of the files just in case experimentation leaves them in a non-working state.

demo_proc.mk will work from anywhere, provided you have ORACLE_HOME and anything related setup correctly (basically if you can run sqlplus you'll be ok).

 > Also, do you mean if write any other code, this should work on  > demo_proc.mk?

demo_proc.mk will handle any configuration comprising a number of .pc or .c source files.

Dave.

-- 
Email address munged to avoid SPAM
Reverse the last two parts to reply directly
Received on Fri Oct 18 2002 - 16:43:49 CEST

Original text of this message