On Wed, Aug 2, 2017 at 8:01 AM, Baguley, Nicholas: Absa < [email protected]> wrote:
> Hi List > > I am trying to compile some code > > 16761 | #define _ISOC99_SOURCE > 16762 | #include "math.h" > 16763 | ..dNewValue = trunc(dValue*dDigits) / dDigits; > > Getting error: > > > ============================================¬ > "/u/abnb529/cpf/source/XMM021D.C", line 16763.29: CCN5274 (S) The name > lookup for "trunc" did not find a declaration. > 16764 | > > > Running 15650ZOS V2.2 z/OS XL C++ > > Version Macros. . . . . . . . : __COMPILER_VER__=0x42020000 > : __LIBREL__=0x42020000 > : __TARGET_LIB__=0x42020000 > > Could anyone shed some light? > TIA > > Nick Baguley > Looking at page: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxbd00/trun.htm The code seems to be: *C++ TR1 C99* #define _TR1_C99 #include <math.h> float trunc(float x); long double trunc(long double x); -- Veni, Vidi, VISA: I came, I saw, I did a little shopping. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
