last xharbour compile error

Re: last xharbour compile error

Postby richard-service » Sat Oct 08, 2016 5:58 pm

richard-service wrote:Hi EMG
I use last xharbour xhb10162_bcc70, when I buildx fwh\sample
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20161004)
Copyright 1999-2016, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'maria01.prg' and generating preprocessed output to 'maria01.ppo'...
Generating C source output to 'maria01.c'...
Done.
Lines 53, Functions/Procedures 2, pCodes 215
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
maria01.c:
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
* Application successfully built *


I got this run error
Module: '.\source\classes\ACTIVEX.PRG' was compiled into PCODE
version: 0, this version of xHarbour expects versio: 10


I use fwh1512 and my friend fwh16xx same as PCODE problem when xhb10162_bcc70/bcc72
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby Enrico Maria Giordano » Sat Oct 08, 2016 6:06 pm

As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: last xharbour compile error

Postby richard-service » Sat Oct 08, 2016 6:24 pm

Enrico Maria Giordano wrote:As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version.

EMG


I see.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby nageswaragunupudi » Sat Oct 08, 2016 7:28 pm

FWH does not include hbcompat.ch in any of its modules.
This is for information.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: last xharbour compile error

Postby Enrico Maria Giordano » Sat Oct 08, 2016 9:05 pm

Ok, but it is in the include directory. It has to be removed. And what is worst, it's a very old version.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: last xharbour compile error

Postby Enrico Maria Giordano » Sat Oct 08, 2016 9:10 pm

I just found that the following FWH modules do include hbcompat.ch:

Code: Select all  Expand view
database.prg
valtostr.prg


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: last xharbour compile error

Postby richard-service » Sun Oct 09, 2016 3:15 am

Enrico Maria Giordano wrote:I just found that the following FWH modules do include hbcompat.ch:

Code: Select all  Expand view
database.prg
valtostr.prg


EMG


I test xharbour->\xhb10162_con\xharbour\contrib\MySQL folder, TMySQL.prg not include hbcompat.ch
so when make EXE, appear Error message .... 'HB_STOD' , ' HB_SYMBOL_UNUSED'
add hpcompat.ch include and fix hpcompat.ch HB_SToD , no problem.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby Enrico Maria Giordano » Sun Oct 09, 2016 1:35 pm

Enrico Maria Giordano wrote:As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version.

EMG


Hold on! It could be a bug. I'm waiting for a response from Luiz...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: last xharbour compile error

Postby richard-service » Mon Oct 10, 2016 6:37 am

Enrico Maria Giordano wrote:
Enrico Maria Giordano wrote:As I already said, FWH has to be recompiled using latest xHarbour. Otherwise you are forced to stick with the old xHarbour version.

EMG


Hold on! It could be a bug. I'm waiting for a response from Luiz...

EMG


OK.....
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby richard-service » Tue Oct 11, 2016 2:40 am

Enrico Maria Giordano wrote:I just found that the following FWH modules do include hbcompat.ch:

Code: Select all  Expand view
database.prg
valtostr.prg


EMG


Myabe FWH include hbcompat.ch need to add two codes.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby richard-service » Tue Oct 11, 2016 5:36 am

Dear EMG,

I found these from TMySQL.prg
Code: Select all  Expand view

SWITCH aField[MYSQL_FS_TYPE]
               case MYSQL_TYPE_STRING    
               case MYSQL_TYPE_VAR_STRING
.....
otherwise
                    aRow[i] := ""
            endswitch  
 

I try to add hbcompat.ch file( from FWH or xharbour ) and search it command
Code: Select all  Expand view

/* SWITCH ... ; case ... ; DEFAULT ; ... ; END */
   #xcommand DEFAULT => OTHERWISE
...
/* Some statement endings */
   #xcommand ENDSEQUENCE => END
   #xcommand ENDSWITCH => END
   #xcommand END SWITCH => END
   #xcommand ENDWITH => END
 

I compile it and still got error message
source\tmysq.prg(945) Error E0030 Syntax error: "syntax error at 'OTHERWISE'"
source\tmysql.prg(949) Error E0010 ENDIF does not match IF

If I "SWITCH" change to "DO CASE ...Otherwise ENDCASE" work fine.
anyone good idea?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 803
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: last xharbour compile error

Postby Enrico Maria Giordano » Tue Oct 11, 2016 7:55 am

You can't use switch with otherwise. This compiles fine here:

Code: Select all  Expand view
FUNCTION MAIN()

    LOCAL aField := {}

    LOCAL i := 1

    LOCAL aRow

    SWITCH aField[1]
        case 2
        case 3
        default
            aRow[i] := ""
    endswitch

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: last xharbour compile error

Postby Enrico Maria Giordano » Tue Oct 11, 2016 10:02 am

No more PCODE problem after this changelog:

Code: Select all  Expand view
2016-10-10 22:05 UTC-0300 Luiz Rafael Culik <luiz@xharbour.com.br>


:-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests