Bug in BCC64

Bug in BCC64

Postby Enrico Maria Giordano » 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:

Code: Select all  Expand view
#include <stdio.h>


#define TEST "А"


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

    return 0;
}


prints:

Code: Select all  Expand view
?
63


While this modified sample:

Code: Select all  Expand view
#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 view
ðÉ
-48


I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Return to Off Topic / Otros temas

Who is online

Users browsing this forum: No registered users and 2 guests