GNU bug report logs - #11045
Info required to compile a file. Error is attached here

Previous Next

Package: emacs;

Reported by: Chethan HB <chethanbasavaraj <at> gmail.com>

Date: Tue, 20 Mar 2012 08:16:02 UTC

Severity: normal

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11045 in the body.
You can then email your comments to 11045 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11045; Package emacs. (Tue, 20 Mar 2012 08:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chethan HB <chethanbasavaraj <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Mar 2012 08:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chethan HB <chethanbasavaraj <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Info required to compile a file. Error is attached here
Date: Tue, 20 Mar 2012 12:59:22 +0530
[Message part 1 (text/plain, inline)]
Hi,

When I compile a file using compile option which is available in emacs (I
mean tools->compile) error is popped saying,

-*- mode: compilation; default-directory: "~/emacs-23.1/bin/" -*-
Compilation started at Tue Mar 20 12:38:44

make -k
make: *** No targets specified and no makefile found.  Stop.

Compilation exited abnormally with code 2 at Tue Mar 20 12:38:44

Installing info:

C:\emacs\emacs-23.1\bin

I have kept hello.cpp in C:\emacs\emacs-23.1\bin. Also tried keeping
hello.cpp in diff location.

hello.cpp

// Begining to C++

#include <iostream>

using namespace std;
int main()
{
cout<<"Hello world"<<endl;

return 0;
}

What could could be the mistake that I am facing?


-- 
Regards
Chethan HB

"Life is just a moment between a breath and none. Hope I do enough to add
meaning to it."
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11045; Package emacs. (Tue, 20 Mar 2012 16:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 11045 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Chethan HB <chethanbasavaraj <at> gmail.com>
Cc: 11045 <at> debbugs.gnu.org
Subject: Re: bug#11045: Info required to compile a file. Error is attached here
Date: Tue, 20 Mar 2012 12:22:39 -0400
Chethan HB wrote:

> make -k
> make: *** No targets specified and no makefile found.  Stop.

Hello, I don't think this is an Emacs bug. The same question was asked a
few days ago on the help-gnu-emacs list, which is the right place. Eg

http://lists.gnu.org/archive/html/help-gnu-emacs/2012-03/msg00135.html

Please ask on help-gnu-emacs if you need more help.

> What could could be the mistake that I am facing?

You need to install a compiler on your machine, and figure out how to
call it from a command prompt from outside Emacs. Then just enter the
same thing at the M-x compile prompt as you did at the command prompt.




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 20 Mar 2012 16:58:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 11045 <at> debbugs.gnu.org and Chethan HB <chethanbasavaraj <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 20 Mar 2012 16:58:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 Apr 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.