Embarass to ask a simple question [message #2087] |
Thu, 20 June 2002 06:20 |
James
Messages: 120 Registered: June 2000
|
Senior Member |
|
|
I am trying Embedded SQL by using Pro* C/C++
after I compiled and linked it,
how to run program compiled by pro*C?
I can't find the instruction for that.
after "make -f proc.mk sample5"
generate "extproc.dll", this sample is from the oracle manual(on-line).
Thanks a lot.
James
|
|
|
Re: Embarass to ask a simple question [message #2110 is a reply to message #2087] |
Thu, 20 June 2002 22:32 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
The Pro*C compiler is a PRE-compiler. It has to be ran before the actual compiler, just like with sqlJ.
The Pro*C precompiler accepts the source program as input, translates the embedded SQL statements into standard Oracle runtime library calls, and generates a modified source program that you can compile, link, and execute in the usual way.
So, you'll need to:
1. precompile your pro*C source file
2. compile the C source file, you got as output from the precompilation.
This depends on your environment, in Windows you would use e.g. Visual C++.
MHE
|
|
|