Ask Your Question

Terminal Error

asked 2012-08-05 15:46:27 -0500

Janzen254 gravatar image

In terminal it does this:

gcc: fatal error: no input files
compilation terminated.

How do I fix it?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-06 01:55:38 -0500

Abhay gravatar image

You need to give the source file names to be compiled with gcc. The correct usage of gcc is:

$ gcc [options] file...

where, file... can me more than one .c or h file.

For more information about how to use gcc you can type "gcc --help" from the command prompt.

edit flag offensive delete link more

answered 2012-08-05 16:06:58 -0500

joncr gravatar image

What command had you entered that produced those messages?

edit flag offensive delete link more

Question Tools


Asked: 2012-08-05 15:46:27 -0500

Seen: 431 times

Last updated: Aug 06 '12