Problem compiling c file on unix

HI,

I have a proc installation.
On running the following 3 commands, I successfully get 3 C files.
proc char_map=string util.pc
proc char_map=string FDRFeedMain.pc
proc char_map=string NonMons.pc

This gives me util.c FDRFeedMain.c NonMons.c

Now when i try to compile the the above 3 files using xlc with the command below

xlC -L${ORACLE_HOME}/lib -Lcrt0_r.o -lclntsh -ldl -lc -lpthreads -lodm -lm -lbsd_r -lld -I../include -g util.c FDRFeedMain.c NonMons.c -o FdrFeed

I get the error,

util.c:
"util.c", line 217.45: 1506-449 (W) Missing return expression.
"util.c", line 233.12: 1506-449 (W) Missing return expression.
FDRFeedMain.c:
NonMons.c:
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-317 ERROR: Undefined symbol: .sqlbuft
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

This stuff came up in my office for migrating some old application.
All help is appreciated.
Even if someone can tell me, the meaning of the missing return expression. !!!

THanks

can someone please help. This is urgent.
all help is greatly appreciated.

The "missing return expression" is just a warning, probably some non-void function ending without a return.
The real problem is that the linker can't find the symbols '.sqlcxt' and '.sqlbuft' which it expects in one of the libraries. As per the error message, try running the compile with the '-bnoquiet' option added, maybe this can give you some hint on what to look for.

What is xlC? Is that an alias for proc?

You may want to check your $ORACLE_HOME/precomp/admin/pcscfg.cfg file and check the path of the sys_include parameter and make sure it points to the correct libraries.

Hi
For the first two error messages, check if there is no return for the defined functions.
For the second error messages about ProC Have a look to :
undefined reference to `sqlcxt' (Pro C compilation problem) - bytes

Thanks for the help all of you !! I will try the above suggestions and get back on the same thread

my pcscfg.cfg file in the location /sys2/oracle/product/11.1.0/precomp/admin has

sys_include=(/sys2/oracle/product/11.1.0/precomp/public,/usr/include)

should it be having something else also

Thanks