LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help - EMacs with C++ (https://www.linuxquestions.org/questions/linux-newbie-8/help-emacs-with-c-161813/)

jitus 03-24-2004 10:28 AM

Help - EMacs with C++
 
Hi everybody out there.

Could somebody tell me, How to use emacs editor to compile and run c++ programmes?

guygriffiths 03-24-2004 11:15 AM

M-x compile
It asks for the command, with the default of "make -k"
It will bring up another window with the output which makes it easy to find errors/warnings
To run it, then do:
M-x shell
To get a window with a shell prompt.

jitus 03-25-2004 07:33 AM

Any more suggestion?????

cadkins 03-25-2004 08:22 AM

what was wrong with the one they gave? ^^

jitus 03-25-2004 10:35 AM

hello cadkins,

Problem is that when i run any programme from command prompt only first line of the command gets executed.

So is there any method to run the programme within Emacs IDE ?

cadkins 03-25-2004 12:25 PM

try to do it in Kate. It has a shell prompt on the bottom and the text editor on top.

sounds like something else is going on besides just getting it to use Emacs. Not sure if Emacs will do any better.

Is this a program that you are doing? Maybe show us some of the code...could be something there.

guygriffiths 03-25-2004 01:43 PM

Quote:

So is there any method to run the programme within Emacs IDE ?
Yes, the way I said. It brings up a shell prompt within Emacs IDE

tmillard 04-02-2004 01:29 PM

Thank you all. I found this post helpfull.


All times are GMT -5. The time now is 08:43 AM.