Compiling and running an entire poject from command line/terminal on Linux

Reply

Join Date: Oct 2006
Posts: 174
Reputation: tech291083 is an unknown quantity at this point 
Solved Threads: 0
tech291083 tech291083 is offline Offline
Junior Poster

Compiling and running an entire poject from command line/terminal on Linux

 
0
  #1
Apr 22nd, 2007
Hi,

I am Fedora Core 5 32+ bit os. I am a self taught guy and currently trying to get my head around the basics of C++ programming. I am at the moment using the command prompt only, to compile and run the small programs written in C++. Just a while ago I came across this site and something caught my attention, that was nothing else but some really basic interfaces consisting of menus, buttons etc written in C++. So I downloaded some of the code which was in zip format and unzipped the whole thing in a folder. Here is the web page.

http://www.codeguru.com/cpp/controls/menu/

I have attached the screen shot/image (it is from my other machine which has Win xp just to show people here) to this post showing just how many different types of files the unzipped package/source code contains. I am still not used to any particular IDEs on Linux in order to be able to put all these files in one big project. So I was wondering if I keep them all in one folder as they are at the moment on my Linux machine and compile + run them from the command line/terminal itself without using any particular IDEs that work with Linux for example the Eclipse one. Thanks .....
Attached Thumbnails
small.JPG  
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Compiling and running an entire poject from command line/terminal on Linux

 
0
  #2
Apr 22nd, 2007
Usually if you're working on a project in Linux through a command line environment, you likely should be using a Makefile to build your app. If you're not going to use make and similar tools, then you probably should use an IDE for any sizeable project.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,066
Reputation: Sturm is on a distinguished road 
Solved Threads: 24
Sturm's Avatar
Sturm Sturm is offline Offline
Veteran Poster

Re: Compiling and running an entire poject from command line/terminal on Linux

 
0
  #3
May 6th, 2007
Like Infarction said, Makefiles are the way to go if you do not have/want an IDE. Personally I think IDEs are awful and a scourge to programming but thats just my opinion ;-) I usually just have a Makefile and use Emacs.
"Hey ass, don't hijack my thread. This is serious." -JoshSCH
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 190
Reputation: Toba is an unknown quantity at this point 
Solved Threads: 4
Toba's Avatar
Toba Toba is offline Offline
Junior Poster

Re: Compiling and running an entire poject from command line/terminal on Linux

 
0
  #4
Jun 22nd, 2007
All hail GNU autotools.
what? WHAT?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 71
Reputation: indienick is an unknown quantity at this point 
Solved Threads: 2
indienick's Avatar
indienick indienick is offline Offline
Junior Poster in Training

Re: Compiling and running an entire poject from command line/terminal on Linux

 
0
  #5
Aug 4th, 2007
What you seem to have downloaded, are headers for using menus in a program. To actually use these as a program, you would need to write a program that makes use of, and creates instances of, these headers and classes.

Then you need to compile and link it, using g++.
Angel-headed hipsters burning for the ancient heavenly connection, to the starry dynamo in the machinery of the night.
-Ginsburg

Don't tell me to "google it" - I already have.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 174
Reputation: tech291083 is an unknown quantity at this point 
Solved Threads: 0
tech291083 tech291083 is offline Offline
Junior Poster

Re: Compiling and running an entire poject from command line/terminal on Linux

 
0
  #6
Sep 25th, 2007
Thanks for the help guys..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC