I solved it finally myself, there is an error in the main.c in the adlutil directory.
Here is the fix for others, go to line 819, there you will find the functions: GetValue(), GetHex() and GetFloat().
Old code to replaceint GetValue( char * name, int * iValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %d\n", sField, 33, iValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
int GetHex( char * name, int * iValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %X\n", sField, 33, iValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
int GetFloat( char * name, float * fValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %f\n", sField, 33, fValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
with that:
int GetValue( char * name, int * iValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %d\n", sField, iValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
int GetHex( char * name, int * iValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %X\n", sField, iValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
int GetFloat( char * name, float * fValue, int line )
{
char sField[ 256 ];
fscanf_s( file,"%32s %f\n", sField, fValue);
if ( 0 == strcmp( sField, name ) )
return ADL_OK;
else
{
sprintf_s( err, sErr, "Expected : %s \nActual : %s \nIn line : %d", name, sField, line );
return ADL_ERR;
}
}
Explaination:the error was in the function:
fscanf_s( file,"%32s %d\n", sField, 33, iValue);
you have to remove te third argument in all the functions, after that it should compile the adlutil.
Regards,
Banzak