LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Newbie emacs compile error (https://www.linuxquestions.org/questions/programming-9/newbie-emacs-compile-error-143339/)

neilcpp 02-07-2004 11:13 AM

Newbie emacs compile error
 
:newbie:
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

ilikejam 02-07-2004 11:56 AM

Have you made a Makefile?

Dave

UltimaGuy 02-08-2004 05:33 AM

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 :).


All times are GMT -5. The time now is 07:15 PM.