Re: Art Kagel 'dostats.ec' - compiling on HP-UX
Posted in 1999
Topics: Installation, Setup & Upgrades, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Versions, Editions & End-of-Life
Adam Bradley wrote: > Hi all, > > I was wondering if somebody might be able to help me.......I have extracted > Art Kagel's 'dostats.ec' utility from 'utils2_ak' but I am having trouble > compiling it. > > I am not a programmer myself so please forgive my naivety......... > > I am running IDS 7.31 on a HP-UX(Unix) Box - I know for a fact that we have > an ansi-c compiler installed. I have tried to compile 'dostats.ec' using > the following switches: > > esql -ansi -o dostats dostats.ec > > esql -o dostats dostats.ec > > .....but both give me the same result,namely: > > esqlc: "dostats.ec", line 1337: Warning -33036: This line does not conform > to AN > SI X3.135-1989. > 35 warning(s) > cc: "/home/kenny/informix.731/incl/esql/locator.h", line 111: error 1705: > Functi > on prototypes are an ANSI feature. This message means you are using the bundled HP-UX C compiler, which is famous for not recognizing prototypes. It is only useful for two things: * Rebuilding the HP-UX kernel * Bootstrapping the GNU C Compiler Either buy the HP ANSI C compiler, or get GCC and use that. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN #include <disclaimer.h>
Jonathan Leffler <jleffler@earthlink.net> wrote in article <3817CF09.DBD1113B@earthlink.net>... > > This message means you are using the bundled HP-UX C compiler, which is > famous for not recognizing prototypes. It is only useful for two things: > * Rebuilding the HP-UX kernel > * Bootstrapping the GNU C Compiler > Either buy the HP ANSI C compiler, or get GCC and use that. > > -- > Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) > Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN > #include <disclaimer.h> > I was able to eventually compile with the bundled HP-UX C compiler with the following command: esql -Ae -o dostats dostats.ec (The '-Ae' switch told the compiler to use extended-ANSI mode)
Hmm; interesting. I did not realize that the bundled compiler supported that option. OK; I live, I learn (occasionally). Adam Bradley wrote: > Jonathan Leffler <jleffler@earthlink.net> wrote: > > This message means you are using the bundled HP-UX C compiler, which is > > famous for not recognizing prototypes. It is only useful for two things: > > * Rebuilding the HP-UX kernel > > * Bootstrapping the GNU C Compiler > > Either buy the HP ANSI C compiler, or get GCC and use that. > > I was able to eventually compile with the bundled HP-UX C compiler with the > following command: > > esql -Ae -o dostats dostats.ec > > (The '-Ae' switch told the compiler to use extended-ANSI mode) -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.62 -- see http://www.perl.com/CPAN #include <disclaimer.h>