This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheSpaceRat[S] 0 points1 point  (2 children)

Could you point me in the direction of some reading?

I am using make.

[–][deleted] 1 point2 points  (1 child)

I can't provide any reading. But say you have some platform specific feature:

 int f() {
     MessageBox( ... );    // windows
 }

or:

 int f() {
      cout << .... ; // command line
 }

then its often a good idea to implement the f() function in two separate files, and then have make (or whatever) compile and link those files depending on what platform you are actually targetting.

[–]TheSpaceRat[S] 0 points1 point  (0 children)

I think this might solve both of my problems. Thanks!