By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,925 Members | 1,129 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,925 IT Pros & Developers. It's quick & easy.

compling/running the program

P: n/a
Hello
can I use the makefile to run my code.
say I type $make which does it's thing, then "can I put ./project1 as
the last line" to run the program?
did how work here but I would like to come up with a way to just type
somthing in the shell and it makes and runs the program. any thoughts.
thanks
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Baloff wrote:
can I use the makefile to run my code.
say I type $make which does it's thing, then "can I put ./project1 as
the last line" to run the program?
did how work here but I would like to come up with a way to just type
somthing in the shell and it makes and runs the program. any thoughts.


$ make && ./project1

Now ask this: When you change your code, can't you just hit a button on your
editor, and it will save, compile, optionally navigate to error messages,
and then run the program if it built? Why not?

(And note this is on-topic for a forum that discusses your exact compiler:
It's not a C++ question, so we are not qualified to answer it.)

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.