all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#11045: Info required to compile a file. Error is attached here
@ 2012-03-20  7:29 Chethan HB
  2012-03-20 16:22 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Chethan HB @ 2012-03-20  7:29 UTC (permalink / raw)
  To: 11045

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

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."

[-- Attachment #2: Type: text/html, Size: 1585 bytes --]

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

* bug#11045: Info required to compile a file. Error is attached here
  2012-03-20  7:29 bug#11045: Info required to compile a file. Error is attached here Chethan HB
@ 2012-03-20 16:22 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-03-20 16:22 UTC (permalink / raw)
  To: Chethan HB; +Cc: 11045

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.





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

end of thread, other threads:[~2012-03-20 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20  7:29 bug#11045: Info required to compile a file. Error is attached here Chethan HB
2012-03-20 16:22 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.