Page 1 of 1

Bug in BCC64

Posted: Wed Nov 01, 2023 2:41 pm
by Enrico Maria Giordano
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:

Code: Select all | Expand

#include <stdio.h>


#define TEST "А"


int main()
{
    printf( "%s\n", TEST );
    printf( "%d\n", *TEST );

    return 0;
}
prints:

Code: Select all | Expand

?
63
While this modified sample:

Code: Select all | Expand

#include <stdio.h>


#define TEST "А"


//Ð


int main()
{
    printf( "%s\n", TEST );
    printf( "%d\n", *TEST );

    return 0;
}
prints the correct answer that is:

Code: Select all | Expand

ðÉ
-48
I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.