Home » SQL & PL/SQL » SQL & PL/SQL » Embarass to ask a simple question
Embarass to ask a simple question [message #2087] Thu, 20 June 2002 06:20 Go to next message
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 Go to previous message
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
Previous Topic: how to check the existence of a row in another table
Next Topic: Re[2]: How to deal with ORA-04020 under Oracle 8i ?
Goto Forum:
  


Current Time: Thu Apr 25 08:08:38 CDT 2024