Windows VS 2022 hbcurl\core.c(542): error C2664: 'void hb_vmPushString(const char *,HB_SIZE)': cannot convert argument 1 from 'void *' to 'const char *'

125 views
Skip to first unread message

Lorenzo Fiorini

unread,
Feb 10, 2025, 4:04:59 AM2/10/25
to harbou...@googlegroups.com
Just for report this error building in Windows:

...

hbcurl\core.c(542): error C2664: 'void hb_vmPushString(const char
*,HB_SIZE)': cannot convert argument 1 from 'void *' to 'const char *'
hbcurl\core.c(542): note: Conversion from 'void*' to pointer to
non-'void' requires an explicit cast
..\include\hbvm.h(167): note: see declaration of 'hb_vmPushString'
hbcurl\core.c(542): note: while trying to match the argument list '(void
*, size_t)'

...

regards,
Lorenzo



Antonio Linares

unread,
Feb 10, 2025, 10:25:47 PM2/10/25
to Harbour Developers
Dear Lorenzo,

Fixed, many thanks

2025-02-11 04:21 UTC+0100 Antonio Linares (alinares/at/fivetechsoft.com)
  * contrib/hbcurl/core.c
    + implemented required explicit cast reported by Lorenzo Fiorini

Lorenzo Fiorini

unread,
Feb 11, 2025, 3:10:13 AM2/11/25
to harbou...@googlegroups.com
On 11/02/2025 04:25, Antonio Linares wrote:

> Dear Lorenzo,
>
> Fixed, many thanks

Thank you Antonio.

regards,
Lorenzo
Reply all
Reply to author
Forward
0 new messages