C++ How do you create multifile project

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 92
Reputation: djbsabkcb is an unknown quantity at this point 
Solved Threads: 0
djbsabkcb's Avatar
djbsabkcb djbsabkcb is offline Offline
Junior Poster in Training

C++ How do you create multifile project

 
0
  #1
Jul 25th, 2005
Exactly how do you create multi-file project and how do you compile it in C++ using Linux?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: C++ How do you create multifile project

 
0
  #2
Jul 25th, 2005
Originally Posted by djbsabkcb
Exactly how do you create multi-file project and how do you compile it in C++ using Linux?
EZ way, by using some IDE like this.

Not so EZ way (but you will learn a lot), by using makefiles as described here and in other sources.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 55
Reputation: Sauce is an unknown quantity at this point 
Solved Threads: 0
Sauce Sauce is offline Offline
Junior Poster in Training

Re: C++ How do you create multifile project

 
0
  #3
Jul 25th, 2005
A programmer that says an editor is the answer...geesh. The answer is with the include statment with something like this...
  1. #include "fileToInclude.cpp"

For more info just look up the uses of the include in C/C++
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: C++ How do you create multifile project

 
0
  #4
Jul 25th, 2005
[High Guard]Just follow the links before start typing nonsenses.

The 2nd one will TEACH you what the #include directive is intended for.[/High Guard]
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 51
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: C++ How do you create multifile project

 
0
  #5
Jul 25th, 2005
Hello,

You might also wish to look up and how to write makefiles. Unfortunately, I do not remember the exact sequence anymore, as I have moved on to system administration instead of programming, but makefiles can really make your life easier.

Christian
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC