FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Experiences from convert to 64Bit BCC
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 09:52 AM

I will tell to all my way to 64 Bit. Maybe this is interesting for other users.

At begin the parameter -v should apply to BCC64.exe. There comes some interesting information from the compiler (double directories, etc.).
To own c-files should be added the fwh.h and all constructs "( HDC ) hb_parnl( param )" should now be wrote as "( HDC ) fw_parH( param )" to be compatible.

..will be continued....

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 10:06 AM

thanks for your feedback

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 04:40 PM

I found, that for prgs the Harbour-compiler should not make c-files. Unstead the files has to be cpp!
Many errors if using #pragma begindump and #pragma enddump contains cpp-code are gone!

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 04:52 PM

Günther,

When Harbour is built we can decide if we want C or CPP output files.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 05:08 PM
Also with current Harbour in mak:
Code (fw): Select all Collapse
.prg.cpp:
   $(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Experiences from convert to 64Bit BCC
Posted: Thu Mar 31, 2016 09:23 PM

All Clang compilers use .a as lib- and .o as objectfile. This should be respected in all make-files.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Experiences from convert to 64Bit BCC
Posted: Fri Apr 01, 2016 05:15 AM

You can also use the switch -O2 to enable all (speed)-optimizations from BCC64.exe

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Experiences from convert to 64Bit BCC
Posted: Fri Apr 01, 2016 07:20 AM
To own c-files should be added the fwh.h and all constructs "( HDC ) hb_parnl( param )" should now be wrote as "( HDC ) fw_parH( param )" to be compatible.

Antonio this should expanded to HWND and HFONT too!
Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion