Antonio,
did you mean by "FWH libs replace Harbour errorsys", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?
Antonio,
did you mean by "FWH libs replace Harbour errorsys", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?
Enrico Maria Giordano wrote:Please note that I'm not using any Harbour functions in my sample so EXE size should not increase even if FWH redefines any of those.
No, it isn't. If I remove or add an unused lib from the list, the EXE size doesn't change.
EMG
// Note: automatically executes at startup
proc ErrorSys()
ErrorBlock( { | e | ErrorDialog( e ) } )
returnFUNCTION MAIN()
  RETURN NIL
FUNCTION ERRORSYS()
  RETURN NILAllright, but note what increase problem is no a fwh problem or harbour problem: it's a C linker problem
Enrico Maria Giordano wrote:No, it isn't. If I remove or add an unused lib from the list, the EXE size doesn't change.
EMG
hmpaquito wrote:Building exe is task of linker. If exe no decrease on remove lib is a linker problem.
hmpaquito wrote:Which is your linker name ?
Can you paste a map file piece ?
Perhap, the trick is searchs map some file symbol in rtl of xHarbour and if founded then they are.
You work es very usefull for found if fwh overwrite some basis rtl functions.
I have a no explicable problem with harbour+ fwh... only if fwh is linking, viewtopic.php?f=6&t=33754&start=0
It's almost 1 MB, too much to paste here. Please send me a private message and I will send back the map file to you.
EMG
send me your .mak file, pls.
You can use buildx.bat.
EMG
I wanted to share my observations.
First, on WIndows, I use msvc and msvc64 exclusively. Never BCC.
If I compile the sample program as is I wind up with a 650 KB executable.
If I add #include "fivewin.ch" to the top of the sample, but still with no calls at all to FWH code, and no other changes to my build scripts, I wind up with a 3.8 MB executable.
When I write programs that need to run as services I never include any part of FWH as it was not designed to run headless in a service, and will surprise with popups (MsgInfo(), etc. buried in certain classes and functions) where there should never be any desktop interaction. I share this because it is where I first noticed the .exe size differences, but I never thought much about it because the larger was always something destined for the desktop.
Robb
gkuhnert wrote:Antonio,
did you mean by "FWH libs replace Harbour errorsys", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?
Antonio Linares wrote:gkuhnert wrote:Antonio,
did you mean by "FWH libs replace Harbour errorsys", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?
yes
FUNCTION MAIN()
  RETURN NIL
FUNCTION ERRORSYS()
  RETURN NILPlease check the linked modules in the map file
there is no other way to know it