|
From: Gregor P. <pe...@in...> - 2001-11-07 05:23:06
|
My Compiler complains about the following codelines
lineNo: c-code
59: char *currentObjName = calloc( 100, sizeof( char ) );
60: char *token1 = calloc( 25, sizeof( char ) );
63: char *mltext, *ptext, *str;
64: mltext = malloc( 10*sizeof(char));
318: mltext = realloc( mltext, (strlen(mltext)+yyleng)*sizeof(char) );
329: mltext = realloc( mltext, (strlen(mltext)+1)*sizeof(char) );
The compilers errmsg is:
SCANNER.LEX:'lineNo': ANSI C++ forbids implicit conversion from
`void *' in initialization
Can tell me someone how to rewrite this ANSI C++ compatible?
THANX
Gregor (pe...@in...)
|