Hello all,
I have an old clipper app that I have ported to Harbour 32 bit and it works well. Just for the heck of it I thought I would try to compile it as a 64 bit app. I have installed the latest 64 bit Harbour and the 64 bit MinGW compiler from the Whosaway site. It won't compile, I get a GCC error. After a couple of days trying everything I could think of, I'm stuck.
To simplify the troubleshooting I tried to compile "hello.prg" the same way and I get the same error.
Here is my Harbour build:
D:\Sail-2020-64\Pgms>harbour -build
Harbour 3.2.0dev (r2003271400)
Copyright (c) 1999-2020,
https://harbour.github.io/Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r2003271400)
Compiler: MinGW GNU C 9.3 (64-bit)
Platform: Windows 10 10.0
PCode version: 0.3
ChangeLog last entry: 2020-03-27 15:00 UTC+0100 Przemyslaw Czerpak (druzus/at/
poczta.onet.pl)
ChangeLog ID: a8ec2651fd87c938fca9eea27a34eb227783725b
Built on: Mar 28 2020 10:52:03
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
---------------------------
Here is my MinGW build:
D:\Sail-2020-64\Pgms>gcc --version
gcc (MinGW-W64 x86_64-posix-dwarf, built by Brecht Sanders) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have set the environment variable HB_ARCH:
D:\Sail-2020-64>set HB_ARCH
HB_ARCH=64
Here is the result of trying to compile "hello.prg"
D:\Sail-2020-64\Pgms>hbmk2 -comp=mingw64 hello.prg
Harbour 3.2.0dev (r2003271400)
Copyright (c) 1999-2020,
https://harbour.github.io/Compiling 'hello.prg'...
Lines 7, Functions/Procedures 1
Generating C source output to 'C:\Users\Bill\AppData\Local\Temp\hbmk_76hzin.dir\hello.c'... Done.
hbmk2: Error: Running C/C++ compiler. -1
gcc.exe -c -O3 -W -Wall -pipe -I"D:/Sail-2020-64/HB3264/include" C:/Users/Bill/AppData/Local/Temp/hbmk_76hzin.dir/hello.c C:/Users/Bill/AppData/Local/Temp/hbmk_43kwzc.c
To test the gcc compiler I compiled the usual "hello.c" (not the harbour output)
D:\Sail-2020-64\Pgms>gcc hello.c -ohello.exe
That compiles and runs fine:
D:\Sail-2020-64\Pgms>hello
Hello, World!
So...I'm most confused! The Harbour compiler seems to run fine, the gcc compiler runs fine on its own. I'm pretty good with Clipper code, not so much with the workings of C compilers. Can anyone help? I'd be most grateful for some insight.
Thanks!
--Bill