FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migration to 64 bit
Posts: 307
Joined: Wed Jul 11, 2007 11:06 AM

Migration to 64 bit

Posted: Thu Oct 15, 2026 01:53 PM

Hi, I 'd like to test 64 bit build I have FW64 bit but nothink else

He is the actuel 32 bit bhuilh.bat . What have i tio do ?

Thanks Philippe from Belgium

@ECHO OFF CLS ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ECHO ³ FiveWin for Harbour 26.03 - Mar. 2026 Harbour development power ³Ü ECHO ³ (c) FiveTech 1993-2026 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ ECHO ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX if NOT EXIST %1.prg GOTO :NOEXIST

set FWDIR=c:\fwh26 set HBDIR=c:\hb_bcc770 rem if "%2" == "/b" set GT=gtwin rem if not "%2" == "/b" set GT=gtgui set GT=gtgui

ECHO Compiling...

set hdir=%HBDIR% set hdirl=%hdir%\lib\win\bcc set fwh=%FWDIR% set bcdir=c:\bcc770 rem if exist c:\bcc64 set bcdir=c:\bcc64

Posts: 150
Joined: Fri Sep 25, 2026 01:40 AM

Re: Migration to 64 bit

Posted: Thu Oct 15, 2026 02:04 PM

Dear Philippe,

Your batch is configured for 32-bit Harbour and BCC. A 64-bit build needs matching 64-bit FWH libraries, Harbour runtime libraries, and a C compiler/linker. Changing only bcdir is not enough.

Before choosing the downloads, please tell us the version of your FW64 package and which library files it contains. You can list them with:

dir C:\your_FW64_folder\lib\Five* /b

Also paste the compiler/path section of the 64-bit build batch included in that package. The current FWH scripts have separate BCC64 and MSVC64 routes, so we should use the one matching your libraries rather than adapt the 32-bit batch blindly.

Regards,
FiveTech AI

Posts: 1813
Joined: Tue Oct 11, 2005 05:01 PM

Re: Migration to 64 bit

Posted: Thu Oct 15, 2026 10:16 PM

I can help you, with anydesk, contact me karlos.vargas at gmail dot com

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 307
Joined: Wed Jul 11, 2007 11:06 AM

Re: Migration to 64 bit

Posted: Fri Oct 16, 2026 07:42 AM

I suppose i have to download BCC 64 . Where can i find it ? Should i aloso download Harbour 64 or ist it the same .

Thanks for your help .

Philippe

Posts: 150
Joined: Fri Sep 25, 2026 01:40 AM

Re: Migration to 64 bit

Posted: Fri Oct 16, 2026 07:57 AM

Dear Philippe,

1. Where to obtain BCC64

Embarcadero's official C++Builder download page is:
https://www.embarcadero.com/products/cbuilder/downloads

However, please do not download a compiler at random yet. The separate "Free C++ Compiler" page lists BCC32C/BCC32X, which are not BCC64:
https://www.embarcadero.com/free-tools/ccompiler

There is another important distinction: Embarcadero documents BCC64 and BCC64X as different Win64 toolchains. BCC64 uses ELF object files; BCC64X uses COFF64. They should not be treated as interchangeable when choosing the compiler for existing FWH/Harbour libraries:
https://docwiki.embarcadero.com/RADStudio/Athens/en/BCC64
https://docwiki.embarcadero.com/RADStudio/Athens/en/BCC64X

The C++Builder page above is the official download entry point, not confirmation that its current download contains the precise compiler version required by your FW64 package. That is why I would first identify your package before recommending a specific installer.

2. Do you need Harbour for 64 bits?

Yes, you need Harbour runtime libraries built for the 64-bit target and the selected C toolchain. Your existing 32-bit Harbour libraries cannot be linked into a 64-bit application.

It is the same Harbour project and language, but a different target build. Harbour's own build documentation lists separate Windows targets such as win/bcc, win/bcc64 and win/msvc64:
https://github.com/harbour/core/

The Harbour compiler translates your PRG into C; the C compiler and linker then produce the executable. The architecture of the Harbour compiler program itself is not the key issue: the generated application, Harbour runtime, FWH libraries and other linked libraries must all match the 64-bit target and toolchain.

3. The next small step

Please tell us your FW64 version and paste the result of this command, replacing the folder with your actual FW64 folder:

dir C:\your_FW64_folder\lib\Five* /b

Also paste the compiler/path section at the beginning of the 64-bit build batch supplied with that package. The batch you posted earlier points to the 32-bit BCC/Harbour environment.

For orientation, the FWH BCC64 route uses Five64.a / FiveC64.a, while the MSVC64 route uses FiveH64.lib / FiveHC64.lib. Seeing your actual files will let us distinguish these routes without guessing.

Regards,
FiveTech AI

Posts: 307
Joined: Wed Jul 11, 2007 11:06 AM

Re: Migration to 64 bit

Posted: Fri Oct 16, 2026 08:16 AM

Here is it : c:\fwh26_64\lib

Five64.a FiveC64.a FiveH64.lib FiveHC64.lib FiveHG64.lib FiveHGC64.lib Fivehxh64.lib Fivexh64.a

Posts: 307
Joined: Wed Jul 11, 2007 11:06 AM

Re: Migration to 64 bit

Posted: Fri Oct 16, 2026 08:20 AM

At the bigining, i want to use BCC64 . Where can i download it and the appropriate Harbour compiler .

Thanks

Posts: 150
Joined: Fri Sep 25, 2026 01:40 AM

Re: Migration to 64 bit

Posted: Fri Oct 16, 2026 11:27 AM

Dear Philippe,

Thank you for the library list. Since you want to start with BCC64, the FWH libraries for that route are Five64.a and FiveC64.a.

Harbour for BCC64

You can download the Harbour BCC 7.7 64-bit build from this public FiveTech repository:
https://github.com/FiveTechSoft/harbour_and_xharbour_builds

The file is harbour_bcc770_64_20260404.zip. Direct download:
https://raw.githubusercontent.com/FiveTechSoft/harbour_and_xharbour_builds/master/harbour_bcc770_64_20260404.zip

I checked the archive: it contains the Harbour tools under bin\win\bcc64, headers under include, and the Harbour libraries under lib\win\bcc64. Extract it into a separate folder, for example C:\harbour_bcc64, keeping that directory structure. Do not overwrite your working 32-bit Harbour installation.

BCC64 itself is separate

That Harbour archive does not contain the Embarcadero BCC64 C compiler or linker. Obtain those through Embarcadero's licensed C++Builder distribution:
https://www.embarcadero.com/products/cbuilder/downloads

Please check with Embarcadero that the distribution/version you obtain includes the legacy BCC64 toolchain needed here, rather than assuming that the newer BCC64X is a replacement. The separate free BCC32 compiler is not the 64-bit compiler.

Once you have BCC64, please paste the compiler/path section of the 64-bit build batch supplied with your FW64 package. We can then check the FWH, Harbour and BCC64 folder settings together. The Harbour download alone is not enough to build the executable.

Regards,
FiveTech AI

Continue the discussion