FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 09:35 AM
Marc,

Or can I just take the same as my BCC for 32-bit, and replace bcc32 in bcc64 and ilink32 into ilink64?
And changing the paths and libs ofcource :-)


Yes, please do it and publish it here and I will help you to fine tune it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 10:55 AM
Antonio,

Ths is my RMK-file
Code (fw): Select all Collapse
HBDIR=c:\_vmsdata\FWH64\harbour64
BCDIR=c:\_vmsdata\FWH64\bcc71
FWDIR=c:\_vmsdata\FWH64\FWH64

#change these paths as needed
.path.OBJ = .\
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =             \
   EPKSDOC.PRG    \
   PROJECT.PRG    \

PROJECT    : EPKSDOC.exe

EPKSDOC.EXE  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ)
   $(BCDIR)\bin\ilink64 -Gn -aa -Tpe -s @EPKSDOC.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /n /w /p /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc64 -c -tWM -I$(HBDIR)\include -o$& $&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc64 -o$& @tmp $&.c
  del tmp

EPKSDOC.res : EPKSDOC.rc
  $(BCDIR)\bin\brc32.exe -r EPKSDOC.rc


And this my BC-file
Code (fw): Select all Collapse
c:\_vmsdata\FWH64\bcc71\bin\c0w64.o +
EPKSDOC.OBJ +
PROJECT.OBJ, +
EPKSDOC.exe, +
EPKSDOC.map, +
c:\_vmsdata\FWH64\FWH64\lib\Five64.a c:\_vmsdata\FWH64\FWH64\lib\FiveH64.a +
c:\_vmsdata\FWH64\harbour64\lib\hbwin.a +
c:\_vmsdata\FWH64\harbour64\lib\gtgui.a +
c:\_vmsdata\FWH64\harbour64\lib\hbrtl.a +
c:\_vmsdata\FWH64\harbour64\lib\hbvm.a +
c:\_vmsdata\FWH64\harbour64\lib\hblang.a +
c:\_vmsdata\FWH64\harbour64\lib\hbmacro.a +
c:\_vmsdata\FWH64\harbour64\lib\hbrdd.a +
c:\_vmsdata\FWH64\harbour64\lib\rddntx.a +
c:\_vmsdata\FWH64\harbour64\lib\rddcdx.a +
c:\_vmsdata\FWH64\harbour64\lib\rddfpt.a +
c:\_vmsdata\FWH64\harbour64\lib\hbsix.a +
c:\_vmsdata\FWH64\harbour64\lib\hbdebug.a +
c:\_vmsdata\FWH64\harbour64\lib\hbcommon.a +
c:\_vmsdata\FWH64\harbour64\lib\hbpp.a +
c:\_vmsdata\FWH64\harbour64\lib\hbcpage.a +
c:\_vmsdata\FWH64\harbour64\lib\hbcplr.a +
c:\_vmsdata\FWH64\harbour64\lib\hbct.a +
c:\_vmsdata\FWH64\harbour64\lib\hbpcre.a +
c:\_vmsdata\FWH64\harbour64\lib\xhb.a +
c:\_vmsdata\FWH64\harbour64\lib\hbziparc.a +
c:\_vmsdata\FWH64\harbour64\lib\hbmzip.a +
c:\_vmsdata\FWH64\harbour64\lib\hbzlib.a +
c:\_vmsdata\FWH64\harbour64\lib\minizip.a +
c:\_vmsdata\FWH64\harbour64\lib\png.a +
c:\_vmsdata\FWH64\harbour64\lib\hbusrrdd.a +
c:\_vmsdata\FWH64\bcc71\lib\cw64.a +
c:\_vmsdata\FWH64\bcc71\lib\psdk\kernel32.a +
c:\_vmsdata\FWH64\bcc71\lib\psdk\user32.a +
c:\_vmsdata\FWH64\bcc71\lib\psdk\import64.a
EPKSDOC.res


The error I get is
Code (fw): Select all Collapse
c:\_vmsdata\FWH64\projects\EPKSDoc\prg>c:\_vmsdata\FWH\bcc55\bin\make -fEPKSDOC.
rmk
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        c:\_vmsdata\FWH64\bcc71\bin\ilink64 -Gn -aa -Tpe -s @EPKSDOC.bc
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies,
Inc.
EPKSDOC.res(1):'Invalid character in .DEF file'
Fatal: Error processing .DEF file
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 11:21 AM

Marc,

There is a missing comma here:

c:_vmsdata\FWH64\bcc71\lib\psdk\import64.a, <<-- here
EPKSDOC.res

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 01:08 PM
Getting close...

Only this error
Code (fw): Select all Collapse
c:\_vmsdata\FWH64\projects\EPKSDoc\prg>c:\_vmsdata\FWH\bcc55\bin\make -fEPKSDOC.
rmk
MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
        echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
        echo -Ic:\_vmsdata\FWH64\harbour64\include;c:\_vmsdata\FWH64\FWH64\inclu
de >> tmp
        c:\_vmsdata\FWH64\bcc71\bin\bcc64 -oEPKSDOC @tmp EPKSDOC.c
Embarcadero C++ 7.10 for Win64 Copyright (c) 2012-2015 Embarcadero Technologies,
 Inc.
EPKSDOC.c:
EPKSDOC.c:7:10: fatal error: 'hbvmpub.h' file not found
#include "hbvmpub.h"
         ^
1 error generated.

** error 1 ** deleting .\EPKSDOC.OBJ


Strange, since the file is in C:\_vmsdata\FWH64\harbour64\include
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 03:16 PM
Antonio,

It finally works :-) :-) :-)
Even my library works. :-) :-) :-) :-)
First I was thinking that you renamed the lib-files to .a because then where in test, but if I create my lib, it also is a .a file :-)

The strange thing is that my 'TOOLBAR' is not shown in my application, compiling with VS2015, it was working...

I will take al look at it...
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 04:12 PM

Is Harbour.exe for 64bit a 64bit-exe or a 32bit-cross-compiler?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 07:05 PM

Günther,

harbour.exe always work the same, so in fact you can use the same compiler for 32 and 64 bits, etc

harbour.exe generates a C file with pcode, the same pcode for all.

The above does not apply to the Harbour libraries

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Mon Mar 28, 2016 07:15 PM

Antonio, thanks!
My computer is 32bit. Thats why i ask!
Tomorrow i will order the FWH64.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 10:00 AM
Antonio,

I have a strange problem.
In my 32bit library I have a function called mdbf2xls()

If I add that function to my lib, ald call it from mu program, I get this error while compiling..
Code (fw): Select all Collapse
        c:\_vmsdata\FWH64\bcc71\bin\ilink64 -Gn -aa -Tpe -s @EPKSDOC.bc
Turbo Incremental Link64 6.72 Copyright (c) 1997-2015 Embarcadero Technologies,
Inc.
Error: Unresolved external 'GetAdaptersInfo' referenced from C:\_VMSDATA\FWH64\H
ARBOUR64\LIB\BCC\HBRTL.A|hbsocket.o


If I add
Code (fw): Select all Collapse
func mdbf2xls()
RETURN nil


To my main program, I don't get that error
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 04:51 PM

Marc,

Please link Borland LIB\psdk\iphlpapi.a too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 05:08 PM
Antonio Linares wrote:Marc,

Please link Borland LIB\psdk\iphlpapi.a too


Thank you, now it's working.

Until now, I'am using by SQL-function that I wrote myself, (creating databases, tables, list tables,....) and they are working fine.
I was using them because I was using a very old version of FWH, FWH710 :-) , but they are working fine :-)

I say thaw now there are some SQL-function in FWH. I wanted to try one of them, but I get this error.
Code (fw): Select all Collapse
Error: Unresolved external 'HB_FUN_SQLTRANSACT' referenced from C:\_VMSDATA\FWH
4\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLGETIN32' referenced from C:\_VMSDATA\FWH6
\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLPREP32' referenced from C:\_VMSDATA\FWH64
FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLSETCURSORNAME' referenced from C:\_VMSDAT
\FWH64\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLGETCURSORNAME' referenced from C:\_VMSDAT
\FWH64\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLTABLES' referenced from C:\_VMSDATA\FWH64
FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLSTATISTICS' referenced from C:\_VMSDATA\F
H64\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLCOLUMNS' referenced from C:\_VMSDATA\FWH6
\FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLDRVC32' referenced from C:\_VMSDATA\FWH64
FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLDESC32' referenced from C:\_VMSDATA\FWH64
FWH64\LIB\FIVE64.A|ODBC.OBJ
Error: Unresolved external 'HB_FUN_SQLGETD32' referenced from C:\_VMSDATA\FWH64
FWH64\LIB\FIVE64.A|ODBC.OBJ
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 05:42 PM

Marc,

I have just emailed you modified FWH 64 BCC libs

Please try it again with them

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 05:48 PM
Antonio Linares wrote:Marc,

I have just emailed you modified FWH 64 BCC libs

Please try it again with them


Thank you,

Now, it's working.
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 10:07 PM
Hello,

A strange thing that I just notice is:
If you call for example a function, and a variable does not exist.
The programs dot gives an error that the variable does not exist, but hangs...

This is very difficult to debug. I don't know, if this is a FWH64 problem, of BCC7.1

For example if you misspell paramtr2 instead of parameter2
Code (fw): Select all Collapse
parameter1 = 10
parameter2 = 20
testvar(parameter1,paramtr2)

The programs hangs. You have to stop it with tastmanager.

Or also
Code (fw): Select all Collapse
parameter1 = 'nice'
v = 'This is '+paramter1

Give the same result.

In my FWH32, I get an error that paramter1 dos not exist..
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 64 for Borland bcc 7.1 64 bits is running!!!
Posted: Tue Mar 29, 2016 10:16 PM

Marc,

Seen, thanks

We are working to fix it

regards, saludos

Antonio Linares
www.fivetechsoft.com