Page 1 of 1

Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 9:52 am
by byte-one
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....

Re: Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 10:06 am
by Antonio Linares
thanks for your feedback

Re: Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 4:40 pm
by byte-one
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!

Re: Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 4:52 pm
by Antonio Linares
Günther,

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

Re: Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 5:08 pm
by byte-one
Also with current Harbour in mak:
Code: Select all  Expand view
.prg.cpp:
   $(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@

Re: Experiences from convert to 64Bit BCC

PostPosted: Thu Mar 31, 2016 9:23 pm
by byte-one
All Clang compilers use .a as lib- and .o as objectfile. This should be respected in all make-files.

Re: Experiences from convert to 64Bit BCC

PostPosted: Fri Apr 01, 2016 5:15 am
by byte-one
You can also use the switch -O2 to enable all (speed)-optimizations from BCC64.exe

Re: Experiences from convert to 64Bit BCC

PostPosted: Fri Apr 01, 2016 7:20 am
by byte-one
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!