LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2004, 10:28 AM   #1
jitus
LQ Newbie
 
Registered: Mar 2004
Location: Mumbai(Bombay)
Distribution: Red Hat 8
Posts: 20

Rep: Reputation: 0
Help - EMacs with C++


Hi everybody out there.

Could somebody tell me, How to use emacs editor to compile and run c++ programmes?
 
Old 03-24-2004, 11:15 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
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.
 
Old 03-25-2004, 07:33 AM   #3
jitus
LQ Newbie
 
Registered: Mar 2004
Location: Mumbai(Bombay)
Distribution: Red Hat 8
Posts: 20

Original Poster
Rep: Reputation: 0
Any more suggestion?????
 
Old 03-25-2004, 08:22 AM   #4
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
what was wrong with the one they gave? ^^
 
Old 03-25-2004, 10:35 AM   #5
jitus
LQ Newbie
 
Registered: Mar 2004
Location: Mumbai(Bombay)
Distribution: Red Hat 8
Posts: 20

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-25-2004, 12:25 PM   #6
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
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.
 
Old 03-25-2004, 01:43 PM   #7
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
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
 
Old 04-02-2004, 01:29 PM   #8
tmillard
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
Thank you all. I found this post helpfull.
 
  


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
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
Emacs. shayan_tabrizi Linux - Software 1 07-23-2004 07:02 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
Emacs HELP! sathyan Programming 6 07-18-2003 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration