Compile a proc/c++ file in debug mode.

Hi,

I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created.

I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe is generated, I'm unable to debug that file. Please help.

1.       proc proc1.pc
2.       cc -I ${ORACLE_HOME}/precomp/public -c proc1.c
3.       cc -bloadmap:proc1.map -lm -lld -L $ORACLE_LIB $ORACLE_LIB/libcommon9.a $ORACLE_LIB/libgeneric9.a -lclntsh -o proc1 proc1.o

try using the -g cc option

thank you Frank for your kind reply. Your solution Worked!!!