HMG 3.0.0 + IDE + HFCL (Forum Test IX)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 3905
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 15 times
Been thanked: 140 times

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

Post by Roberto Lopez » Mon Oct 26, 2009 6:05 pm

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3905
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 15 times
Been thanked: 140 times

Post by Roberto Lopez » Mon Oct 26, 2009 6:20 pm

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3905
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 15 times
Been thanked: 140 times

Post by Roberto Lopez » Mon Oct 26, 2009 11:29 pm

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3905
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 15 times
Been thanked: 140 times

Post by Roberto Lopez » Mon Oct 26, 2009 11:47 pm

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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Rathinagiri
Posts: 5212
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 156 times
Been thanked: 145 times
Contact:

Post by Rathinagiri » Tue Oct 27, 2009 12:22 am

Oh, sorry Roberto. Actually I had misunderstood and I have to ask for apologies.

In that case, I think it is already ideal. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

arroya2
Posts: 160
Joined: Thu Aug 06, 2009 7:16 am

Post by arroya2 » Tue Oct 27, 2009 6:51 am

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

User avatar
esgici
Posts: 4441
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 330 times
Been thanked: 99 times
Contact:

Post by esgici » Tue Oct 27, 2009 9:59 am

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
Viva INTERNATIONAL HMG :D

User avatar
arturo_lopesoria
Posts: 23
Joined: Tue Sep 09, 2008 3:05 am
Location: Mexico

Post by arturo_lopesoria » Tue Oct 27, 2009 9:32 pm

Thanks so much Roberto.
Saludos desde Mexico City.
Arturo.

Post Reply