Strange error while compiling in FwH 26.03 (solved)

Post Reply
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Strange error while compiling in FwH 26.03 (solved)

Post by driessen »

Hello,

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

Code: Select all | Expand

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.

Last edited by driessen on Fri May 01, 2026 12:00 pm, edited 1 time in total.

Regards,

Michel D.
Genk (Belgium)

_____________________________________________________________________________________________

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

User avatar
TimStone
Posts: 3031
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Strange error while compiling in FwH 26.03

Post by TimStone »

Is that a . At the end of the line?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

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. 26.03 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

User avatar
TimStone
Posts: 3031
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Strange error while compiling in FwH 26.03

Post by TimStone »

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Strange error while compiling in FwH 26.03

Post by Enrico Maria Giordano »

I just compile your sample and found no compiler errors:

Code: Select all | Expand

#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
User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Strange error while compiling in FwH 26.03

Post by karinha »

Who is BOEK? Is it a database?

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

Yes, it is a database

Regards,

Michel D.
Genk (Belgium)

_____________________________________________________________________________________________

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

User avatar
karinha
Posts: 8720
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Strange error while compiling in FwH 26.03

Post by karinha »

look,

Code: Select all | Expand

   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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error while compiling in FwH 26.03

Post by Antonio Linares »

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
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

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. 26.03 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error while compiling in FwH 26.03

Post by Antonio Linares »

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

The above should generate a yourfile.ppo file

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

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. 26.03 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Strange error while compiling in FwH 26.03

Post by Antonio Linares »

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
User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

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. 26.03 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

User avatar
driessen
Posts: 1472
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Strange error while compiling in FwH 26.03

Post by driessen »

Antonio,

Thank you very much. Problem is solved.

Have a nice day.

Regards,

Michel D.
Genk (Belgium)

_____________________________________________________________________________________________

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

Post Reply