I cannot compile gcc -0 no recognized

Asked by clara A on 2012-11-29

I cannot compile a simple program
when I write gcc -0 file file.c does not recognized -0
thanks
clara

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
2012-11-29
Last reply:
2012-11-29
PeterPall (peterpall) said : #1

Strange problem. But I think I found a solution: Did you by any chance use a zero instead of a O?

Warren Hill (warren-hill) said : #2

Not surprised here

-0 is not a valid opton

---------------------------------
gcc file.c
--------------------------------

Should work the output file will be "a.out"

and

---------------------------------
gcc -o file file.c
--------------------------------

the option is a lower case O not a zero

Should work the output file will be "file"

for more help try

---------------------------------
gcc --help
-------------------------------

or

---------------------------------
man gcc
--------------------------------

clara A (camatleon) said : #3

Thanks Peter, u r absolutely right!
clara

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #215522]: I cannot compile gcc -0 no recognized
> Date: Thu, 29 Nov 2012 04:50:58 +0000
>
> Your question #215522 on gnome-terminal in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/215522
>
> Status: Open => Answered
>
> PeterPall proposed the following answer:
> Strange problem. But I think I found a solution: Did you by any chance
> use a zero instead of a O?
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/215522/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/215522
>
> You received this question notification because you asked the question.

Warren Hill (warren-hill) said : #4

Please mark this question solved

Can you help with this problem?

Provide an answer of your own, or ask clara A for more information if necessary.

To post a message you must log in.