Specifying Compiler Flags and System Libraries
You must use the same compiler flags to build your application that were used to build the SourcePro libraries you are linking to. The macro _RWCONFIG=12d (release build) or _RWCONFIG=15d (debug build) handles all SourcePro-specific command line requirements, but not system-specific requirements.
To determine the system requirements, consider SourcePro example makefiles. For instance, since the MySQL, PostgreSQL, and the DB packages depend on the Essential Tools Module, the makefiles will include the requirements for all libraries.
Here are a few lines from an example makefile, including the critical line with the COMPILEFLAGS variable:
 
#C++ macros
CPPINVOKE= clCOMPILEFLAGS= -nologo -EHsc /std:c++17 -MD -O2 -GR -D_SCL_SECURE_NO_DEPRECATE -I.
CONFIGDEF=-D_RWCONFIG=$(TAG)
LINKLIBS= dbt12d.lib tls12d.lib user32.lib
The COMPILEFLAGS variable tells you the flags you need.