944,123 Members | Top Members by Rank

Ad:
Apr 22nd, 2007
0

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

Expand Post »
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
Click image for larger version

Name:	small.JPG
Views:	484
Size:	26.9 KB
ID:	3258  
Similar Threads
Reputation Points: 15
Solved Threads: 0
Junior Poster
tech291083 is offline Offline
181 posts
since Oct 2006
Apr 22nd, 2007
0

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

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.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
May 6th, 2007
0

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

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.
Reputation Points: 343
Solved Threads: 24
Veteran Poster
Sturm is offline Offline
1,067 posts
since Jan 2007
Jun 22nd, 2007
0

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

All hail GNU autotools.
Reputation Points: 115
Solved Threads: 5
Junior Poster
Toba is offline Offline
192 posts
since Jun 2004
Aug 4th, 2007
0

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

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++.
Reputation Points: 23
Solved Threads: 2
Junior Poster in Training
indienick is offline Offline
71 posts
since Aug 2005
Sep 25th, 2007
0

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

Thanks for the help guys..
Reputation Points: 15
Solved Threads: 0
Junior Poster
tech291083 is offline Offline
181 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: Deleting files of a particular extension
Next Thread in IT Professionals' Lounge Forum Timeline: some help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC