Release : 8.6
Component : Gen Build Tool
In Gen 8.6 GA file STUBDB2N.SQC did not contain the line:
That line was added to an updated STUBDB2N.SQC installed with PTF RTN86106/RO98577 which is also included in Gen 8.6 Complete PTF WKS86200/SO09618 which is the current baseline for a Gen 8.6 Windows installation:
The RTN86106 PTF description reports the problem as:
Setting the build token OPT.BUILD_SRC to force a build of the STUBDB2N.SQC
when targetting Windows/DB2-UDB will result in a LINK error like the
STUB.OBJ : error LNK2019: unresolved external symbol _sprintf
1. For version Gen 8.6 GA (before RTN86106 is installed) when using default value of BT Profile "C" Token OPT.BUILD_SRC=NO, the error "STUB.OBJ : error LNK2019: unresolved external symbol _sprintf referenced in function _C4ERRMSG" occurs. Also for that version with OPT.BUILD_SRC=YES the same error occurs (per PTF description)
2. After installing Gen 8.6 Complete PTF WKS86200, the problem still occurs when using default OPT.BUILD_SRC=NO.
However when using OPT.BUILD_SRC=YES the problem is resolved. OPT.BUILD_SRC=YES forces a precompile of STUBDB2N.SQC followed by compile to create a new STUBDB2N.OBJ which is copied to STUB.OBJ for the link process.