Re: pro*c error sqlcex undefind

From: Brian Stanek <bstanek_at_indy.net>
Date: Sat, 21 Jan 1995 04:00:26 GMT
Message-ID: <D2qLsr.IA5_at_indy.net>


Sharif Joya (joya_at_MCS.COM) wrote:
: Hi everybody: I wrote a small proc*c program to insert a row
: in table new; This is the first time I am writing pro*c prog.
: The way I compile:
 

: proc iname=filename
: cc filename.c
 

: errrrrrrrrorrr:
: But c compiler gives me error ld: _sqlcex undefined.
: Belew are the two line I see in c file.
 

: extern sqlcex(/*_ unsigned long *, struct sqlexd *, struct sqlcxp * _*/);
: sqlcex(&sqlctx, &sqlstm, &sqlfpn);
 

: Im I missing anything or may be compiling wrong. Will appreciate any help.
 

: Thanks
: joya( joya_at_mars.mcs.com)
 

: /* sample program starts here */
<< Snip >>

I cannot see anything wrong with your program. But, you do need to link your program with the Oracle libraries. In your PRO*C directory structure that are example programs and link commands. There should be a sample make file.

Brian Stanek
Profound Consulting
email: bstanek_at_indy.net Received on Sat Jan 21 1995 - 05:00:26 CET

Original text of this message