Gcc compiler dus not work

Herman hermanhart at versatel.nl
Wed Oct 29 19:04:31 GMT 2008


Hi,

Thanks for the answer, but it is still not working
also not with your source code, however i did your code in lcc32-win Wedit 
and it workt perfect.

so i think something is wrong with ubuntu 8.4,  i take a look at the 
installed items about gcc and these are on
cpp
cpp-4.2
gcc
gcc-4.2
gcc-4.2 base
lib gcc 1
libcomp1

if someone have a working gcc maby he/she wil tell me wich items about gcc 
are installed

thanks
regards Herman.


----- Original Message ----- 
From: "Michal Ingeli" <kexik at kexik.net>
To: "Herman" <hermanhart at versatel.nl>
Sent: Wednesday, October 29, 2008 12:09 AM
Subject: Re: Gcc compiler dus not work


> hi,
>
> you are missing few points. C source file should indluce necessary
> header files like stdio.h (declaration of printf), stdlib.h etc.
> Otherwise the compiler will complain.
>
> so the correct hello world may look like this:
>
> #include <stdio.h>
> #include <stdlib.h>
>
> int main(int argc, char* argv[]) {
> printf("Hello world!\n");
> return EXIT_SUCCESS;
> }
>
> Herman wrote:
>> dear all,
>>
>> I try to use the GCC C compiler 4.2.4 on my ubuntu 8.04 but it only give 
>> error -  impliciete declaratie from functie `'
>>
>> i just follow the handbook ubuntu unleashed and the GCC man page
>>
>> A simple program like;
>>
>> main()
>> {
>>        printf (" Hello World \n");
>> }
>>
>> gives The above error
>>
>> I work in my one directorie
>> Do i have to specify the path also ? ( the handbook or manpage says 
>> nothing about that)
>>
>> with regards
>> Herman
>>
>>
> --
> ksyz 




More information about the Ubuntu-installer mailing list