Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-07-2004, 11:13 AM   #1
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
Newbie emacs compile error

I am using emacs to compile a simple program in c++ mode. when I type the command to compile I get this error message:

make -k
make ***no targets specified and no makefile found. Stop
compilation exited abnormally with code 2 at' ( / time)

can anyone tell me what is causing this problem & how to fix it?

Thanks in advance
Old 02-07-2004, 11:56 AM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Have you made a Makefile?

Old 02-08-2004, 05:33 AM   #3
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
If you didn't create a make file, do the following...

Press 'M-x'

Then type 'compile'

Now, instead of pressing 'Enter', remove that 'make -k' and type 'g++ <progname> <options>'. Now press 'Enter' and you'll compile the program. If you have created a makefile, then this is unnecessary .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie kernel compile error Reefcrazed Linux - Newbie 3 05-07-2004 07:35 AM
emacs with gdb error varala_kanth Linux - Software 0 04-03-2004 05:24 AM
newbie ./configure compile error Gumz Linux - Newbie 1 11-14-2003 02:31 AM
EMACS newbie vanquisher Programming 5 09-09-2003 11:14 AM
Alt-X compile in Emacs stopped working Tinkster Programming 1 02-04-2003 05:46 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration