Original Post
I asked this a long time ago but it bugs me, isn't there a simple answer? Suppose you are coding two related projects and for both of them you wrote several .cpp files. Now suppose about half of the .cpp files in one project are exactly the same as the ones in the other project. In order to make sure both projects have the most up to date version of a .cpp file then every time you modify it in one project then you have to copy it to the other project and overwrite the old one. I HATE that! I mean isn't there some way to write those #include's with directory information or something? Or maybe in the "g++ whatever.cpp..." part specify it there somehow so I can have those common files in one directory and both projects grab them from the same place? Because I am like... in serious danger of heavily modifying a .cpp file in one project and forgetting to overwrite the old one in the other project. THEN slightly modifying the old .cpp file in the other project and REMEMBERING to overwrite the other one this time and losing a day's work. I'll commit suicide.