Bug in BCC64
Posted: Wed Nov 01, 2023 2:41 pm
Only for C developers. I'm trying to build Harbour with BCC64. It seems there is a bug in BCC64 version 7.20 onward (7.10 is the latest that works fine). This sample:
prints:
While this modified sample:
prints the correct answer that is:
I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.
Code: Select all | Expand
#include <stdio.h>
#define TEST "Ð"
int main()
{
printf( "%s\n", TEST );
printf( "%d\n", *TEST );
return 0;
}
Code: Select all | Expand
?
63
Code: Select all | Expand
#include <stdio.h>
#define TEST "Ð"
//Ð
int main()
{
printf( "%s\n", TEST );
printf( "%d\n", *TEST );
return 0;
}
Code: Select all | Expand
ðÉ
-48