FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Strange error while compiling in FwH 26.03 (solved)
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Strange error while compiling in FwH 26.03 (solved)
Posted: Thu Apr 30, 2026 02:37 PM

Hello,

If I build my application, in FwH 26.03 a got a compiling error in this line:

IF BOEK->REK <= 8 .AND. ((OzTel = 1 .AND. BOEK->IN <> 0) .OR. (OzTel = 2 .AND. BOEK->UIT <> 0)) .AND. BOEK->DATUM <= DATVERSLAG

The message is:

.\AKTIEF.PRG(689) Error E0030 Syntax error "syntax error at ')'"

If I build my application in any earlier version, I get no error at all.

Why is this error occuring? There seems nothing wrong with that line to me.

Thank you.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 02:49 PM

Is that a . At the end of the line?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 03:01 PM

If you mean the line with code? No, there is no . at the end of the line.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 03:23 PM

On my view of your post it shows one. Thats why I asked.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 03:42 PM

I just compile your sample and found no compiler errors:

#include "Fivewin.ch"


FUNCTION MAIN()

LOCAL OzTel := 1
LOCAL DATVERSLAG := 1

IF BOEK->REK <= 8 .AND. ((OzTel = 1 .AND. BOEK->IN <> 0) .OR. (OzTel = 2 .AND. BOEK->UIT <> 0)) .AND. BOEK->DATUM <= DATVERSLAG
ENDIF

RETURN NIL
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 05:06 PM

Who is BOEK? Is it a database?

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 05:15 PM

Yes, it is a database

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Strange error while compiling in FwH 26.03
Posted: Thu Apr 30, 2026 05:22 PM

look,

   IF ( BOEK )->REK <= 8 .AND. ((OzTel = 1 .AND. ( BOEK )->IN <> 0)   .OR.  ;
                                (OzTel = 2 .AND. ( BOEK )->UIT <> 0)) .AND. ;
      ( BOEK )->DATUM <= DATVERSLAG

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 07:12 AM

Dear Michael,

Please generate the .PPO file and lets check what you get there

Maybe it is being transformed into something different

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 07:35 AM

Good morning, Antonio,

How do I generate a PPO-file? I thought PPO-files were only used with xHarbour? I only use xHarbour Professional for debugging reasons. And building that EXE is no problem. I'm using Harbour for my normal executables.

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 07:39 AM

harbour.exe -n -p -Ic:\fwh\include yourfile.prg

The above should generate a yourfile.ppo file

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 07:47 AM

Antonio,

I builded the PPO-files in 25.12 and in 26.03. I send you the PPO-files by e-mail. There is a slight difference between both of them.

If you send me a message, sorry that I might not be answering immediately. May 1st is a very special day in my city.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 08:48 AM

Dear Michael,

Please remove #include "hbcompat.ch" from FiveWin.ch at line 111

This hbcompat.ch line 321 was causing the error:
#translate ( <exp1> IN <exp2> ) => ( ( <exp1> ) $ ( <exp2> ) )

Translator match ( <exp1> IN <exp2> ) greedy across BOEK->IN, splice BOEK-> + $ + <> 0

Fixed in FWH next build :!:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 09:19 AM

Thank you very much, Antonio. I’ll try it out later and let you know.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Strange error while compiling in FwH 26.03
Posted: Fri May 01, 2026 10:16 AM

Antonio,

Thank you very much. Problem is solved.

Have a nice day.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion