Il 19/12/2023 21:17, Ron Pinkas ha scritto:
MAKE Version 5.43 Copyright (c) 1987, 2019 Embarcadero Technologies, Inc. >> contrib\hbhpdf\hpdf_utils.c:
Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
with no prototype in function HPDF_FToA
Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
with no prototype in function HPDF_FToA
Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef
'HPDF_UINT32' in function HPDF_FToA
Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in
function HPDF_FToA
Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
function HPDF_FToA
Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
function HPDF_FToA
Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
clarify precedence in function HPDF_UInt16Swap
*** 4 errors in Compile ***
Reynaldoo this is because you use TOO OLD verssion of BCC which does NOT ssupport tthe C99 standard (from back in 1999 - more than 20 years ago!).
I bellieve its time that we should officially require C99 conforming compilers and drop support for older.
I'm using MSC 2022 and BCC 2023:
MSC
contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
to 'HPDF_String'
contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(270): note: see declaration
of 'HPDF_String_Free'
contrib\hbhpdf\hpdf_objects.c(63): error C2664: 'void HPDF_Binary_Free(HPDF_Binary)': cannot convert argument 1 from 'void *'
to 'HPDF_Binary'
contrib\hbhpdf\hpdf_objects.c(63): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(315): note: see declaration
of 'HPDF_Binary_Free'
contrib\hbhpdf\hpdf_objects.c(66): error C2664: 'void HPDF_Array_Free(HPDF_Array)': cannot convert argument 1 from 'void *' to 'HPDF_Array'
contrib\hbhpdf\hpdf_objects.c(66): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(351): note: see declaration
of 'HPDF_Array_Free'
contrib\hbhpdf\hpdf_objects.c(69): error C2664: 'void HPDF_Dict_Free(HPDF_Dict)': cannot convert argument 1 from 'void *' to 'HPDF_Dict'
contrib\hbhpdf\hpdf_objects.c(69): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(455): note: see declaration
of 'HPDF_Dict_Free'
contrib\hbhpdf\hpdf_objects.c(72): error C2664: 'void HPDF_Direct_Free(HPDF_Direct)': cannot convert argument 1 from 'void *'
to 'HPDF_Direct'
contrib\hbhpdf\hpdf_objects.c(72): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(631): note: see declaration
of 'HPDF_Direct_Free'
contrib\hbhpdf\hpdf_objects.c(97): error C2440: 'initializing': cannot
convert from 'void *' to 'HPDF_Proxy'
contrib\hbhpdf\hpdf_objects.c(97): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast contrib\hbhpdf\hpdf_objects.c(129): error C2664: 'HPDF_STATUS HPDF_Name_Write(HPDF_Name,HPDF_Stream)': cannot convert argument 1 from
'void *' to 'HPDF_Name'
contrib\hbhpdf\hpdf_objects.c(129): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(235): note: see declaration
of 'HPDF_Name_Write'
contrib\hbhpdf\hpdf_objects.c(132): error C2664: 'HPDF_STATUS HPDF_Number_Write(HPDF_Number,HPDF_Stream)': cannot convert argument 1
from 'void *' to 'HPDF_Number'
contrib\hbhpdf\hpdf_objects.c(132): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(179): note: see declaration
of 'HPDF_Number_Write'
contrib\hbhpdf\hpdf_objects.c(135): error C2664: 'HPDF_STATUS HPDF_Real_Write(HPDF_Real,HPDF_Stream)': cannot convert argument 1 from
'void *' to 'HPDF_Real'
contrib\hbhpdf\hpdf_objects.c(135): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(202): note: see declaration
of 'HPDF_Real_Write'
contrib\hbhpdf\hpdf_objects.c(138): error C2664: 'HPDF_STATUS HPDF_String_Write(HPDF_String,HPDF_Stream,HPDF_Encrypt)': cannot convert argument 1 from 'void *' to 'HPDF_String'
contrib\hbhpdf\hpdf_objects.c(138): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(274): note: see declaration
of 'HPDF_String_Write'
contrib\hbhpdf\hpdf_objects.c(141): error C2664: 'HPDF_STATUS HPDF_Binary_Write(HPDF_Binary,HPDF_Stream,HPDF_Encrypt)': cannot convert argument 1 from 'void *' to 'HPDF_Binary'
contrib\hbhpdf\hpdf_objects.c(141): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(319): note: see declaration
of 'HPDF_Binary_Write'
contrib\hbhpdf\hpdf_objects.c(144): error C2664: 'HPDF_STATUS HPDF_Array_Write(HPDF_Array,HPDF_Stream,HPDF_Encrypt)': cannot convert
argument 1 from 'void *' to 'HPDF_Array'
contrib\hbhpdf\hpdf_objects.c(144): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(355): note: see declaration
of 'HPDF_Array_Write'
contrib\hbhpdf\hpdf_objects.c(147): error C2664: 'HPDF_STATUS HPDF_Dict_Write(HPDF_Dict,HPDF_Stream,HPDF_Encrypt)': cannot convert
argument 1 from 'void *' to 'HPDF_Dict'
contrib\hbhpdf\hpdf_objects.c(147): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(459): note: see declaration
of 'HPDF_Dict_Write'
contrib\hbhpdf\hpdf_objects.c(150): error C2664: 'HPDF_STATUS HPDF_Boolean_Write(HPDF_Boolean,HPDF_Stream)': cannot convert argument 1
from 'void *' to 'HPDF_Boolean'
contrib\hbhpdf\hpdf_objects.c(150): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(152): note: see declaration
of 'HPDF_Boolean_Write'
contrib\hbhpdf\hpdf_objects.c(153): error C2664: 'HPDF_STATUS HPDF_Direct_Write(HPDF_Direct,HPDF_Stream)': cannot convert argument 1
from 'void *' to 'HPDF_Direct'
contrib\hbhpdf\hpdf_objects.c(153): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast E:\FW\xHarbour\contrib\hbhpdf\hpdf_objects.h(635): note: see declaration
of 'HPDF_Direct_Write'
contrib\hbhpdf\hpdf_objects.c(169): error C2440: 'initializing': cannot
convert from 'void *' to 'HPDF_Proxy'
contrib\hbhpdf\hpdf_objects.c(169): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast
BCC
Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
with no prototype in function HPDF_FToA
Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
with no prototype in function HPDF_FToA
Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
function HPDF_FToA
Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
function HPDF_FToA
--
Enrico Maria Giordano
http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)