Re: HELP using ESQL/C w/CC or ansi C
Posted in 1994
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
In article <2o14q1$8n6@hopper.acm.org>, daveotto@ACM.ORG (Dave Otto daveotto@acm.org) writes: |> >|> If not - any luck using the SUN ANSI-C compiler? |> >Informix ESQL/C does NOT support ANSI-C. I'm using |> On the contrary, while INFORMIX does not USE ANSI function definitions, they |> will coexist. We are developing C/ESQL apps for multiple platforms for |> the state of CA and insist on ANSI standard C for portability (ANSI X3J11). Yes, this is a function of C, not of esql/c, though. |> While I don't necessarily think Informix is the best RDBMS around, it has |> proven to very portable. Yes, portability was an important part of chosing Informix -- I do have objections to the salesperson's claim of "ANSI EVERYTHING" and then finding that meant "except for C". Using the ansi compiler for both parts of the code will work just fine. In the project I'm working on, I generally use the .ec files in a seprarate tree and generate a db-use library and then link that in to the rest of the ANSI-C code. The reverse should also work fine. It is important, though, to keep the compiling and linking steps separate, since an object file is an object file, but the compilation step of ANSI and K&R must be kept separate (or "bad things" happen). -Jason