Re: Modularity with Pro*C

From: Michael Krolewski <mkrolew_at_pebbles.uswnvg.com>
Date: 1995/05/16
Message-ID: <3pb1j7$pfc_at_fred.uswnvg.com>#1/1


Agnes Front (front_at_isis) wrote:
: Hello,
 

: I would like to know how to do modularity with Pro*C.
 

: I have indeed got some programs written in C language, including a main
: program. I
: would like to know how to compile a Pro*C program (which contains connection
: and disconnection fonctions to Oracle, and also SELECT, INSERT ... queries)
: in order to include the corresponding C program with the others C programs
: to generate an executable program.
 

: Thank you for advance.
 

: Agnes FRONT
:

        Follow the proC manual.

	The critical issues : the Oracle functions are stored in 
	a .pc file which is precompiled to a .c which is then
	compiled as usual.

	The .pc requires some oracle headers -- it is very useful
	to include the one that handles sqlca data structure for
	debugging, etc. 

	The Oracle software needs the Oracle libaries. In Unix,
	there are several (more than 7) libraries that are
	linked in. 

	The best plan is to use a good makefile; 
	add an  '.o.pc'  rule
	and add the libraries to the link statement.

	If you want specific examples -- would need to know 
	platform, OS, etc.

Mike Krolewski Received on Tue May 16 1995 - 00:00:00 CEST

Original text of this message