LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-07-2004, 11:13 AM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Wheezy, FreeBSD 10.0 anything *nix to get my fix
Posts: 328

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:

'cd~/
make -k
make ***no targets specified and no makefile found. Stop
compilation exited abnormally with code 2 at' (...date / 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
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Have you made a Makefile?

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

Rep: Reputation: 30
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 .
 
  


Reply


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


All times are GMT -5. The time now is 03:16 PM.

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