Carlos Britos wrote: ↑Sun Nov 15, 2020 4:51 pm- There is an error in the file:
h_hmg_pdf.prg, was recorded with utf-8 with BOM which generates harbour error.
- The harbour package installed on github hmg official is not the right one, it has .lib (msvc) libraries.
It should be replaced by the compressed one in the workflow folder that you are compiling with on github.
I can make a pull request with these changes if you agree.
The BOM error is in h_HMG_HPDF.Prg. There is no h_hmg_pdf.prg. There were two BOMs in this file. The second BOM gives the compile error you mentioned. The first BOM is ignored and is not necessary. Harbour assumes all umarked input files to be UTF-8.
Another problem is in SAMPLES\Basics\Hello_World\hello.prg. This demo is very important because it is often the first prg that someone new to HMG compiles. It should therefore be as simple and obvious as possible. Any "Hello world" program should display "Hello world", but the version in current release does not. Instead it changes the title of the window from "Hello world" to hb_gtVersion(), which displays as "NUL". This version of the demo also added REQUEST HB_GT_NUL_DEFAULT to the top with a comment "remove the console window in back", but the REQUEST does not actually do this. The console window comes from build.bat waiting for the demo to exit, not from the demo itself. This demo should be reverted to what we had in 3.4.4, which is a simple program that correctly displays "Hello world".
Harbour, MinGW, and the IDE should all be reverted to what we had in 3.4.4. The lib folder should contain all the current compiled HMG libraries, as it did in 3.4.4.
I am now developing another release that will address all these issues. Carlos, please wait for this release. It will only be another day or two. Thanks!
Kevin