FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Off Topic / Otros temas Bug in BCC64
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Bug in BCC64
Posted: Wed Nov 01, 2023 02: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 (fw): Select all Collapse
#include <stdio.h>


#define TEST "А"


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

    return 0;
}
prints:
Code (fw): Select all Collapse
?
63
While this modified sample:
Code (fw): Select all Collapse
#include <stdio.h>


#define TEST "А"


//Ð


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

    return 0;
}
prints the correct answer that is:
Code (fw): Select all Collapse
ðÉ
-48
I tried all sort of switches but nothing worked. Any ideas? Even a workaroud would be much appreciated.

Continue the discussion