Re: where does cc send the output by default
From: Fletcher Glenn (fletcher_at_removethisfoglight.com)
Date: 02/25/05
- Next message: Nils Weller: "Re: read vs fread"
- Previous message: Jogi Kuenstner: "Re: where does cc send the output by default"
- In reply to: Greenhorn: "where does cc send the output by default"
- Next in thread: David Schwartz: "Re: where does cc send the output by default"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Feb 2005 23:36:54 GMT
Greenhorn wrote:
> Hi,
> The program generated by the below code through cc doesn't give me any
> output on the terminal.
>
> #include <stdio.h>
> main()
> {
>
> printf("Testing the printf functionality");
>
> }
>
> Terminal window:
> [sharko@localhost ~]$ cc test.c
> [sharko@localhost ~]$ test
> [sharko@localhost ~]$
>
> I tried to uninstall the development tools provided with my fedora core
> 3. An error is shown.
>
> Packages Not Found
>
> The following packages could not be found on your system. Installation
> cannot continue until they are installed.
> gettext
> /bin/gettext
> ....
>
> where could the problem be ?
>
> what is the solution ?
> how should i uninstall the dev-applications now, should i live with
> them if not reinstalling the entire OS
>
You should be aware that the word "test" already exists as a UNIX
program on most machines. Most compilers will send the compiled
output to a file named "a.out" unless you tell it otherwise with
a -o directive as in:
cc -o mytest test.c
-- Fletcher Glenn
- Next message: Nils Weller: "Re: read vs fread"
- Previous message: Jogi Kuenstner: "Re: where does cc send the output by default"
- In reply to: Greenhorn: "where does cc send the output by default"
- Next in thread: David Schwartz: "Re: where does cc send the output by default"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|