Re: functions
Posted in 1994
->mltsa!jgill@mlgtw.att.com asked: -> ->> can a C function be called from within an esql/c program. -> ->> we seem to be having some difficulty with the compiler ->> reporting the C function as an unresolved external. -> ->> thanks in advance for any help. ->bauer@gtetel.com (Danni Bauer) replied: -> ->Sure! Absolutely no problem. This must be a compiler problem. ->Remember, ESQL/C produces C code, so you end up with C code ->calling a C function. Good Luck! -> ->Danni alan@den.mmc.com (Alan Popiel) now adds: I would suggest that the problem is different: you have forgotten to tell esql that you want the C function included in the load module. If your function is named "myfunc" ( aren't they all! :-) ), then remember to include either myfunc.c or myfunc.o along with your other arguments to esql. As with cc, esql will recompile myfunc.c or merely use myfunc.o during the load phase. Regards, Alan ___________________________ ______________________| R. Alan Popiel |__________________________ \\ Internet: | Martin Marietta, SLS | / \\ alan@den.mmc.com | P.O. Box 179, M/S 3810 | Std disclaimers apply. / )Voice: | Denver, CO 80201-0179 USA | ( / 303-977-9998 |___________________________| (But you knew that!) \\ /________________________) (____________________________\\