unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ravi <ravikanth.au@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to compile this simple program in GNU emacs
Date: Sun, 27 Jan 2008 17:58:39 -0800 (PST)	[thread overview]
Message-ID: <1b4ef437-03d1-4370-ab14-f95e222fa4f3@e23g2000prf.googlegroups.com> (raw)

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.

             reply	other threads:[~2008-01-28  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28  1:58 ravi [this message]
2008-01-28 10:54 ` How to compile this simple program in GNU emacs Martin
2008-01-28 20:23   ` Richard G Riley
2008-01-28 19:36 ` Eli Zaretskii
2008-02-02 20:43 ` Oleksander Gavenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1b4ef437-03d1-4370-ab14-f95e222fa4f3@e23g2000prf.googlegroups.com \
    --to=ravikanth.au@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).