Gcc compiler dus not work
Herman
hermhart at zonnet.nl
Sat Nov 1 13:04:36 GMT 2008
Hello all,
I solve the problem by installing ubuntu 8.10, this works perfect.
I olso tryed 7.04 from cd and Kubuntu 8.10 from cd and they worked also
perfect.
I think there is maybe a bug in ubuntu 8.04
The output on my ubuntu 8.04 was;
gcc firstprog.c and the answer was;
> herman at herman-desktop:~/booksrc$ gcc firstprog.c
> firstprog.c:1:19: fout: stdio.h: Bestand of map bestaat niet
> firstprog.c: In functie ‘main’:
> firstprog.c:8: let op: impliciete declaratie van functie `'
> herman at herman-desktop:~/booksrc$
And from desktop;
> herman at herman-desktop:~$ gcc firstprog.c
> firstprog.c:1:19: fout: stdio.h: Bestand of map bestaat niet
> firstprog.c: In functie ‘main’:
> firstprog.c:8: let op: impliciete declaratie van functie `'
> herman at herman-desktop:~$
If someone like to find out the problem, i like to now the answer.
Regards Herman.
Op zaterdag 01-11-2008 om 13:42 uur [tijdzone +0100], schreef Herman:
> ----- Original Message -----
> From: "Michal Ingeli" <kexik at kexik.net>
> To: "Herman" <hermanhart at versatel.nl>
> Sent: Wednesday, October 29, 2008 9:01 PM
> Subject: Re: Gcc compiler dus not work
>
>
> > Hi,
> >
> > can you post the compiler output? and the command you invoked gcc
> >
> > that example works fine just with this:
> > # cc helloworld.c
> > # ./a.uot
> > Hello World!
> > #
----- Original Message -----
From: <ubuntu-installer-request at lists.ubuntu.com>
To: <ubuntu-installer at lists.ubuntu.com>
Sent: Thursday, October 30, 2008 1:00 PM
Subject: Ubuntu-installer Digest, Vol 23, Issue 10
> Send Ubuntu-installer mailing list submissions to
> ubuntu-installer at lists.ubuntu.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-installer
> or, via email, send a message with subject or body 'help' to
> ubuntu-installer-request at lists.ubuntu.com
>
> You can reach the person managing the list at
> ubuntu-installer-owner at lists.ubuntu.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ubuntu-installer digest..."
>
>
> Today's Topics:
>
> 1. Re: Gcc compiler dus not work (Herman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 29 Oct 2008 20:04:31 +0100
> From: "Herman" <hermanhart at versatel.nl>
> Subject: Re: Gcc compiler dus not work
> To: <ubuntu-installer at lists.ubuntu.com>
> Message-ID: <1F7391F279BB401D8D0C5BBA31CA3EC5 at Medion>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
>
> 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
>
>
>
>
> ------------------------------
>
> --
> Ubuntu-installer mailing list
> Ubuntu-installer at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-installer
>
>
> End of Ubuntu-installer Digest, Vol 23, Issue 10
> ************************************************
More information about the Ubuntu-installer
mailing list