Bug in BCC64

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8775
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 7 times
Contact:

Bug in BCC64

Post 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.
Post Reply