how to Compile Pro*C [message #69421] |
Wed, 02 January 2002 16:50 |
Naba Jyoti Neog
Messages: 3 Registered: January 2002
|
Junior Member |
|
|
Hi Everybody !!
Pl. help me out from this problem !!!
My Boss had asked me to Compile a Pro*C after making
some very simple Changes.
This was a running program.
I had tried to comiple with
$make -f proc.mk petrol
Make: Don't know how to make petrol. Stop.
If I try with
$make -f proc.mk build EXE=petrol OBJS=petrol.o
It compiles & links OK and generates executable but when I run it generates core. Mind it it was a running
program.
Environment is
1.digital unix
2. Oracle8 Enterprise Edition Release 8.0.4.0.0 - Production
Any help is appreciated.
Thanks in advance.
Naba
----------------------------------------------------------------------
|
|
|
Re: how to Compile Pro*C [message #69482 is a reply to message #69421] |
Thu, 17 January 2002 12:06 |
Dhasarath
Messages: 1 Registered: January 2002
|
Junior Member |
|
|
Hi,
Try running the below mentioned command from the Command Line directly ........
# $ORACLE_HOME/bin/proc iname=<x.pc> oname=<x.c> include=$ORACLE_HOME/lib "proc options as needed"
# /bin/cc x.c -o x "with linking options"
"If U are having dependency programs... Try compiling them and then link them using the linking options in the /bin/cc command"
The Core that was generating while u tried running the Executable would have generated 'cos of the non-availability of any dependency programs or 'cos of insufficient Memory. You can read the core using 'strings'/'debugger utility like mdb' and check for exact error that had occured.
Check it up.........hope u find a good result...
|
|
|