Hi Krzysztof,
You have prepared into two files, it's a good way to let ready for adopting these C functions at HMG core.
By the way, these C functions are useful and there are not similar one at HMG core.
I hope be incorporated to us as well libSumatraPDF library.
KDJ wrote: ↑Sat Apr 22, 2017 7:38 pm
How it compile using HMG IDE?
By habit and practicity we use to put C functions at the same place of prg sources.
But how to do in good order having in mind our IDE ?
As far I know, IDE works in conjunction with Build.bat file and works with three parameters at build proccess:
- /option ( [ /n ] [ /d ] [ /c ] )
- prgfile (main prg) or hbpfile
- hbcfile
But in this case, saving the c file at hbp file, is not good idea because IDE will not be considered and will cut off out...
In Harbour is correct to include in hbp file but with different name of PRG file taking this in consideration (to avoid conflict).
Probably our IDE should be changed this behaviour during its re-writing hbp files on building process.
What I have been done in this case when C file need to be builded separated from PRG is to put at main PRG file as include file:
- Screen195.png (26.83 KiB) Viewed 6848 times
It's not a elegant way in my view but it will garantee to be linked.
I very much appreciate your concern to leave the compilation universally with the options we have in HMG.