Is there a way in Visual C++ to #define something in a cpp file and have it defined in other cpp files as well?
There are at least two options:
/D
compiler option to define the macro (this can also be set in the project properties under C/C++ -> Preprocessor -> Preprocessor Definitions)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With