Hey Antonio, thanks for your reply
I already did that earlier in this discussion, I noticed that the order is pretty different and we can't really change that.
all the Harbour core lib's, by default, are being linked after all the other lib's (fwh lib's and bcc lib's) and there's nothing we can do, because when we try to add these harbour core lib's in order, hbmk2 ignores it.
ricbarraes wrote:Hello, I'm working with Vilian in this project
Using builh.bat is possible to create a script and set the order for our files to be compiled. But hbmk2, eventhough we define an order in our .hbp file, the sequence is completely different because, by default, the core harbour libraries are compiled/linked after all of the files listed in our .hbp file.
I was able to track this difference by comparing the .map file generated by both building processes and by tracing it in .hbp files.
We suspect that this difference between building processes are changing the priority of our overwritten methods. I don't really know if that makes senses, but as we are clueless about this issue, maybe that could be a start point...
this is the right order when we are linking using ilink:
Code: Select all
vfawin40.lib ,TwBrw32h.lib ,BarLib32.lib mFileXls.lib ,FiveH.lib ,FiveHC.lib,LibMySql.lib ,hbwin.lib ,gtgui.lib ,hbrtl.lib ,hbvmmt.lib ,hblang.lib ,
hbmacro.lib ,hbrdd.lib ,rddntx.lib ,rddcdx.lib ,rddfpt.lib ,hbsix.lib ,hbcommon.lib ,hbpp.lib ,hbcpage.lib ,hbcplr.lib ,hbct.lib ,hbpcre.lib ,
xhb.lib ,hbziparc.lib ,hbmzip.lib ,hbzlib.lib ,minizip.lib ,hbusrrdd.lib ,hbtip.lib ,cw32mt.lib ,uuid.lib ,import32.lib ,ws2_32.lib ,odbc32.lib ,
nddeapi.lib ,iphlpapi.lib ,msimg32.lib ,psapi.lib ,rasapi32.lib ,gdiplus.lib ,shell32.lib,
And this is the return we got tracking the hbmk2:
Code: Select all
vfawin40.lib TwBrw32h.lib BarLib32.lib FileXls.lib FiveH.lib FiveHC.lib LibMySql.lib hbwin.lib gtgui.lib hbct.lib xhb.lib hbziparc.lib hbmzip.lib
minizip.lib hbtip.lib cw32mt.lib uuid.lib import32.lib ws2_32.lib odbc32.lib nddeapi.lib iphlpapi.lib msimg32.lib psapi.lib rasapi32.lib gdiplus.lib shell32.lib hbextern.lib hbdebug.lib hbvmmt.lib hbrtl.lib hblang.lib hbcpage.lib gtcgi.lib gtpca.lib gtstd.lib gtwin.lib gtwvt.lib gtgui.lib hbrdd.lib hbuddall.lib hbusrrdd.lib rddntx.lib rddcdx.lib rddnsx.lib rddfpt.lib hbrdd.lib hbhsx.lib hbsix.lib hbmacro.lib hbcplr.lib hbpp.lib hbcommon.lib winmm.lib kernel32.lib, user32.lib gdi32.lib advapi32.lib ws2_32.lib iphlpapi.lib winspool.lib comctl32.lib comdlg32.lib shell32.lib uuid.lib ole32.lib oleaut32.lib mpr.lib mapi32.lib imm32.lib msimg32.lib wininet.lib hbpcre.lib hbzlib.lib cw32mt.lib import32.lib