Page 3 of 3

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Mon Oct 26, 2009 6:05 pm
by Roberto Lopez
rathinagiri wrote:Hi,

Nobody gets more syntax errors than me! That's for sure. In the previous versions of IDE, errors were listed line by line. Now, all the errors are listed in a single line, which makes debugging hard. :(

Can that be made again to be listed line by line?
I'll work on that.

Regards,

Roberto.

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Mon Oct 26, 2009 6:20 pm
by Roberto Lopez
rathinagiri wrote:
esgici wrote:Hi Maestro

Thanks to clarifications

Sorry, but including never used nor needed libs into my application is relevant to me, I think.

Best Reagards

--

Esgici
What you are saying is right Esgici.

As Roberto rightly mentioned, the build procedure has to be fine tuned. For this, we need the database of all the functions and related libraries. Whenever there is at least a call for a function from a library, that library shall be added in the build process. Others need not be linked at all. This would definitely save hard disk space. This is the ideal situation. To achieve this, if you ask me what to do, I don't know. May be, Roberto adds another tab in IDE with the default libraries added in the build process and we can untick whatever we don't want to link.

FYI, libxhb.a had been linked in the previous versions default. Now we have to link it manually.
My intention is that applications using any of the features shown in the samples, work with no special configuration using the standard build process. To achieve that, all required libraries are declared at build time (the same applies for all HMG 2.x releases).

Perhaps, I should do more tests and learn more yet, but AFAIK, the EXE size is not impacted by this (at least on my tests). The reason for this is that these libraries are not invoked from libminigui.a.

If I'm wrong, please, let me know and I'll try to solve the problem.

Anyway, advanced users, searching for optimizations could use their own build process or even different build tools.

Please, remember, one of the main HMG goals is to be easy to use and whether possible without no special configurations.

Regards,

Roberto.

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Mon Oct 26, 2009 11:29 pm
by Roberto Lopez
rathinagiri wrote:Hi,

Nobody gets more syntax errors than me! That's for sure. In the previous versions of IDE, errors were listed line by line. Now, all the errors are listed in a single line, which makes debugging hard. :(

Can that be made again to be listed line by line?
Collect the error messages has been a little complicated, since some message goes to standard output and others to standard error.

I've discovered now (from your post) that in some situations, line breaks are inverted, being chr(10)+chr(13) instead chr(13)+chr(10).

This causes that some editors and EDITBOX control show all messages in the same line.

From IDE I've already solved the problem using strtran() function, but from command line it could require an external utility.

Regards,

Roberto.

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Mon Oct 26, 2009 11:47 pm
by Roberto Lopez
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.

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Tue Oct 27, 2009 12:22 am
by Rathinagiri
Oh, sorry Roberto. Actually I had misunderstood and I have to ask for apologies.

In that case, I think it is already ideal. :)

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Tue Oct 27, 2009 6:51 am
by arroya2
esgici wrote:
arroya2 wrote:Hola Roberto.

Perdone mi ignorancia, pero es que no se lo que es HFCL.

Saludos
Rafael Pérez
Google Translate wrote:Pardon my ignorance, but I do not know what it is HFCL.
Hola Rafael

Pleas look at here.

Saludos

--

Esgici
Gracias Esgici
Rafael Pérez

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Tue Oct 27, 2009 9:59 am
by esgici
rathinagiri wrote:Oh, sorry Roberto. Actually I had misunderstood and I have to ask for apologies.

In that case, I think it is already ideal. :)
Hi Maestro

Please accept my excuses too :(

Now everything is clear and right.

Best regards

--

Esgici

Re: HMG 3.0.0 + IDE + HFCL (Forum Test IX)

Posted: Tue Oct 27, 2009 9:32 pm
by arturo_lopesoria
Thanks so much Roberto.
Saludos desde Mexico City.
Arturo.