Esgici (rathinagiri),
I'll show something to support my POV.
Please, build HELLO.WORLD demo.
The EXE size should be: 1855 KB.
Now change the line #170 of build.bat by the following:
Code: Select all
redir -eo hbmk2 -o%~n1.exe %GT% %DEBUG% %MT% %BUILDTYPE% %REBUILDALL% -incpath=%HmgPath%\include -incpath=%CD% -L%HmgPath%\lib -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -prgflag=/q %1 %2 %3 %4 %5 %6 %7 %8 %9 %Resources% >hbmk.log
And build again the demo:
The size will be (again): 1855 KB
The size has no changed.
The second build, was done without declaring the following libraries:
Code: Select all
-lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage.a -lhbpgsql -lpq -lhbtip -lhbct -lhbmisc -lhbnetio
But the exe size is the same because, HELLO.WORLD demo does not use nothing of the code contained in these libraries.
If you build some sample requiring any of those libraries, then, they will be linked without any special configuration required.
I can see advantages only here.
If I've misunderstood you, please accept my apologies.
If I'm wrong or I've missed something, please, let me know.
Regards,
Roberto.