|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - newbie needs help with multiple source files
I have found myself copying and pasting certain functions into all of the programs I've written and decided I should maybe put them in their own source files. My programs are in a separate folder from the digital mars compiler. If the function source files are in the same folder as the main program, I have no problem compiling. But I really think that the source files with commonly used functions should be in one central location (ie, the digital mars folder). How can I compile the programs with the other source files in a different location? I tried to figure out how to write a "myfunctions.h" but that didn't get anywhere, either. -kathryn Feb 20 2006
Kathryn wrote:I have found myself copying and pasting certain functions into all of the programs I've written and decided I should maybe put them in their own source files. My programs are in a separate folder from the digital mars compiler. If the function source files are in the same folder as the main program, I have no problem compiling. But I really think that the source files with commonly used functions should be in one central location (ie, the digital mars folder). How can I compile the programs with the other source files in a different location? I tried to figure out how to write a "myfunctions.h" but that didn't get anywhere, either. Feb 20 2006
Thanks for the quick and clear reply...it's working fine, now. I'll take your advice on not putting my functions in the compiler file. -kathryn In article <dtdq12$2rr$1 digitaldaemon.com>, Bertel Brander says... Feb 20 2006
Thanks for the quick and clear reply...it's working fine, now. I'll take your advice on not putting my functions in the compiler file. -kathryn In article <dtdq12$2rr$1 digitaldaemon.com>, Bertel Brander says... Feb 20 2006
|