unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to compile this simple program in GNU emacs
@ 2008-01-28  1:58 ravi
  2008-01-28 10:54 ` Martin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: ravi @ 2008-01-28  1:58 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I typed in the following code "newone.c" in emacs
#include <stdio.h>
int main()
{
  int i;
  printf("enter i");
  scanf("%d",&i);
  printf("\nthe value entered is %d",i);
  return 0;
}

Then i did M-x compile
gave the command : gcc -o newone newone.c
Then again M-x compile and ./newone

Now emacs displayed another buffer in "compilation mode" like this

-*- mode: compilation; default-directory: "~/Desktop/new/" -*-
Compilation started at Mon Jan 28 07:19:01

./newone
enter i


I have entered 45.

Now here I when I press <RETURN>, it is saying "No error here". But
how do I send in the value 45,  without pressing <RETURN>

enter i45<unable to press enter>

I am also unable to press <SPACE>, <BACKSPACE>

Please help me. I looked in compilation mode manual and emacs manual
but could not figure out.

Should I be pressing in some key sequence ?

Please let me know.

Thanks & Regards,
ravi.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-02 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28  1:58 How to compile this simple program in GNU emacs ravi
2008-01-28 10:54 ` Martin
2008-01-28 20:23   ` Richard G Riley
2008-01-28 19:36 ` Eli Zaretskii
2008-02-02 20:43 ` Oleksander Gavenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).