Re: Newbie: on "Hello, world" -data definition has no type. how to check proper configuration
- From: Fred <fred.l.kleinschmidt@xxxxxxxxxx>
- Date: Fri, 23 May 2008 09:28:22 -0700 (PDT)
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
.
- References:
- Prev by Date: Re: getc and "large" bytes
- Next by Date: Re: Address of an array = address of its 1st element: undecidable question ?
- Previous by thread: Newbie: on "Hello, world" -data definition has no type. how to check proper configuration
- Next by thread: Re: Newbie: on "Hello, world" -data definition has no type. how to check proper configuration
- Index(es):
Relevant Pages
|
Loading