Re: Newbie: on "Hello, world" -data definition has no type. how to check proper configuration



On May 23, 7:29 am, Atropo <lxvasq...@xxxxxxxxx> wrote:
Hi, all.

As you can see I'm just begining on C. with the tutorial "Sams Teach
Yourself C in 24 Hours" as a starter.  on aix 5.2 when compiling a
helloWorld the gcc  throws some warnings the system adminitrator
does'nt know anything about.  could you point me where to check the
gcc conf.  or what i'm doing wrong

Atropo@seagull> more captura.c
#include <stdio.h>
main()
{
int ch;
printf("Please type in one character:\n");
ch = getc(stdin);
printf("The character you just entered is: %c\n", ch);
return 0;

}

Atropo@seagull> gcc captura.c
In file included from /usr/include/sys/m_types.h:40,
                 from /usr/local/lib/gcc-lib/powerpc-ibm-
aix4.3.2.0/2.8.1/include/sys/types.h:393,
                 from /usr/local/lib/gcc-lib/powerpc-ibm-
aix4.3.2.0/2.8.1/include/stdio.h:366,
                 from captura.c:1:
/usr/include/sys/vm_types.h:65: parse error before `vmid64_t'
/usr/include/sys/vm_types.h:65: warning: data definition has no type
or storage class
/usr/include/sys/vm_types.h:66: parse error before `rpn64_t'
/usr/include/sys/vm_types.h:66: warning: data definition has no type
or storage class
/usr/include/sys/vm_types.h:67: parse error before `cnt64_t'
/usr/include/sys/vm_types.h:67: warning: data definition has no type
or storage class
/usr/include/sys/vm_types.h:86: parse error before `psize_t'
/usr/include/sys/vm_types.h:86: warning: data definition has no type
or storage class

Atropo@seagull> uname -a
AIX cofeerd1b 2 5 000C569D4C00

It looks like your compiler is for an AIX4.3 O/S, but you are using
AIX5.2.
You need to get an compiler and associated development kit for 5.2.
--
Fred Kleinschmidt
.



Relevant Pages

  • Lib X11 compile problem /Xlib.h:3573: error: syntax error before "_X_SENTINEL"
    ... checking for gcc... ... checking for C compiler default output file name... ... checking how to recognise dependent libraries... ...
    (comp.os.linux.x)
  • Re: How to set my own program startup in f77 programs other than MAIN__
    ... But we don't have the source file where ... and ifort (using either gcc or icc to compile foo.c). ... But it won't even portable on AIX XL compiler. ...
    (comp.lang.fortran)
  • Re: AIX developer access or hardware to run AIX (Europe)
    ... machine as well as on any machine still running aix v3.2. ... successfull for the GCC. ... Restore a mksysb of an AIX 5.1 machine which had already an vacpp v6 ... It might easier with the older C compiler because afaik they do not ...
    (comp.unix.aix)
  • Re: c compiler for AIX 5.2
    ... > There is no C compiler on the AIX CD set since AIX 4. ... Or gcc is on the "Toolbox for Linux" CD which should have come with your ... And is available for download for IBM. ... > The resulting code is in general slower than with IBM's C compiler. ...
    (comp.unix.aix)
  • gcc failure
    ... I failed with gnu gcc 3.4.5 installation, ... checking for C compiler default output... ... with no type or storage class ...
    (comp.unix.solaris)

Loading