When you compile C/C++ files, it is a common thing that you can change some preprocessor definitions to change how the files are compiled. For example, a common example is that a library is compiled as a dll, but if you define some macro (lets say, for example, STATIC_LIB), it is compiled as a static library.
These macros are usually defined in the project settings from your C++ IDE. How can I define them when I am compiling the C++ files from within a .bmx file? I mean, imagine I have a C++ library that I want to turn into a BMax module. I create a .bmx file which imports all the C++ files and declares the functions contained in them for use with BMax. How can I define macros there so the C++ compiler takes them into account when compiling the files?
Someting like:
These macros are usually defined in the project settings from your C++ IDE. How can I define them when I am compiling the C++ files from within a .bmx file? I mean, imagine I have a C++ library that I want to turn into a BMax module. I create a .bmx file which imports all the C++ files and declares the functions contained in them for use with BMax. How can I define macros there so the C++ compiler takes them into account when compiling the files?
Someting like:
Import "-DSTATIC_LIB"