Hello!
Ron Christie wrote:
>
> The build fails when compiling nortl.c, as follows:
> cl.exe -I. -I../../../../../include -nologo -TP -W4 -wd4127 -Zi
> -DHB_TR_LEVEL_DEBUG -DUNICODE -DHB_FM_STATISTICS -Fonortl.obj -c
> ../../../nortl.c
> nortl.c
> ../../../nortl.c(280) : warning C4244: '=' : conversion from 'int' to
> 'char', possible loss of data
> ../../../nortl.c(281) : warning C4244: '=' : conversion from 'int' to
> 'char', possible loss of data
> ../../../nortl.c(318) : error C2036: 'void *' : unknown size
> ../../../../../config/
rules.mk:88: recipe for target 'nortl.obj' failed
>
Now without going much into this, please try:
--- a/src/nortl/nortl.c
+++ b/src/nortl/nortl.c
@@ -313,7 +313,7 @@ void hb_xexit( void )
for( i = 1, pMemBlock = s_pMemBlocks; pMemBlock; ++i, pMemBlock
= pMemBlock->pNextBlock )
HB_TRACE( HB_TR_ERROR, ( "Block %i %p (size %" HB_PFS "u)
\"%s\"", i,
- ( void * ) pMemBlock + HB_MEMINFO_SIZE, pMemBlock->nSize,
+ ( char * ) pMemBlock + HB_MEMINFO_SIZE, pMemBlock->nSize,
hb_memToStr( szBuffer, ( char * ) pMemBlock +
HB_MEMINFO_SIZE,
pMemBlock->nSize ) ) );
}
I don't believe any other compiler would complain, but if it does, then
maybe this:
+ ( void * )( ( char * ) pMemBlock + HB_MEMINFO_SIZE ),
pMemBlock->nSize,
Best regards, Aleksander