Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!utgpu!watserv1!ria!uwovax!cookson From: cookson@uwovax.uwo.ca Newsgroups: comp.databases Subject: Embedded Sql with C Help! Message-ID: <5154.25ee37c0@uwovax.uwo.ca> Date: 2 Mar 90 14:07:12 GMT Lines: 30 Hi out there, I'm hoping someone can give me some help. I'm using the Ingres dbms, particularly embedded sql in the C language. My problem is, this university does not have the companion guide for the C language for use of embedded sql. I know their exists a command called esqlc that converts the sql statements into C code. What I need to know is how to compile the resulting output file. I've typed: esqlc -foper2.c oper.c cc oper2.c - I get errors here - undefined command Do i need some switches on the cc command, or should the file be including anything? Also, are there any special language dependencies that I should know about. In particular, on the EXEC SQL WHENEVER SQLERROR command, how does one invoke a call to a subroutine. It keeps giving me errors related on the opening bracket of the parameter list for the function I want to call. Any and all hints and advice welcome. You can post to the net, or better yet send email to cookson@uwovax.uwo.ca or cookson@gaul.csd.uwo.ca Thanks in advance for any help! TTFN Mike Cookson