Compilation problem with version 3.0.45

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Compilation problem with version 3.0.45

Post by chrisjx2002 »

Hello,

I have theses errors messages with the last hmg version :

C:/DOCUME~1/CHRIST~1/LOCALS~1/Temp/hbmk_bwkvxc.dir/taxation27.o:taxation27.c:(.data+0x848): undefined reference to `HB_FUN_DBPACK'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x188): undefined reference to `HB_FUN_PDFINIT'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x1a8): undefined reference to `HB_FUN_PDFOPEN'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x2d8): undefined reference to `HB_FUN_PDFNEWPAGE'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x388): undefined reference to `HB_FUN_PDFCLOSE'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x458): undefined reference to `HB_FUN_PDFSETFONT'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x468): undefined reference to `HB_FUN_PDFATSAY'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x478): undefined reference to `HB_FUN_PDFTEXTWIDTH'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x4a8): undefined reference to `HB_FUN_PDFIMAGE'
c:/hmg.3.0.45/lib/libhmg.a(h_rptgen.o):h_rptgen.c:(.data+0x4c8): undefined reference to `HB_FUN_PDFBOX'

What is the solution to this problem?

Regards
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Compilation problem with version 3.0.45

Post by esgici »

chrisjx2002 wrote:...What is the solution to this problem?
What is the project you want to compile ?

Regards
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Compilation problem with version 3.0.45

Post by esgici »

Hi Chris
chrisjx2002 wrote: I have theses errors messages with the last hmg version :
...
What is the solution to this problem?
Please don't misunderstand, I want say "your project is one of HMG sample or not ?"

It's difficult to explore the source of problem by given info :(

Please try add

Code: Select all

libs=hbvpdf
line to your configuration ( "configuration" tab of IDE or .hbc file of your project ).

Regards
Viva INTERNATIONAL HMG :D
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: Compilation problem with version 3.0.45

Post by chrisjx2002 »

Hello,

The program was compiling with an old version of hmg : 3.0.35. I want to recompile it with the last version of hmg and I got these errors messages. Something has changed but I don't know what. For instance the function dbpack is no more recognize (first error message).

It is not an hmg sample.

Regards
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Compilation problem with version 3.0.45

Post by esgici »

Hi Chris
chrisjx2002 wrote: The program was compiling with an old version of hmg : 3.0.35. I want to recompile it with the last version of hmg and I got these errors messages. Something has changed but I don't know what. For instance the function dbpack is no more recognize (first error message).
This type of errors generally caused by changes in Harbour, not HMG.

Does other errors ( other than "dbpack" ) fixed by "libs=..." ?

If so could you give the statement used "dbpack" in ?

Regards
Viva INTERNATIONAL HMG :D
User avatar
Carlos Reis
Posts: 16
Joined: Sat Oct 09, 2010 3:31 pm
Location: Portugal

Re: Compilation problem with version 3.0.45

Post by Carlos Reis »

Hello!
I would like first to thank all those who have developed the HMG.
It has been a great help in my work.
To all of you my thanks :!:
I recently downloaded the new version HMG 3.0.45
I work with databases in MYSQL
So I compiled the prg's that worked in previous versions with this new version,
but now I have a little problem.
Fields of type Tinyint in old versions return boolean values,
now with HMG 3.0.45 return a numeric value.
Do I have to change all my prg's or there is no way to resolve the problem ?
Thanks in advance
Best Regards
Carlos Reis, Portugal
39º 46' 47" N
08º 55' 45 W
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Compilation problem with version 3.0.45

Post by esgici »

Ola Carlos
Carlos Reis wrote:Hello!
I would like first to thank all those who have developed the HMG.
It has been a great help in my work.
To all of you my thanks :!:
I recently downloaded the new version HMG 3.0.45
I work with databases in MYSQL
So I compiled the prg's that worked in previous versions with this new version,
but now I have a little problem.
Fields of type Tinyint in old versions return boolean values,
now with HMG 3.0.45 return a numeric value.
Do I have to change all my prg's or there is no way to resolve the problem ?
Thanks in advance
Harbour Changelog wrote:2011-10-24 01:40 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib/hbmysql/tmysql.prg
! tinyInt type in MySQL is now always regarded as numeric value (was bool)
Patch by Mitja Podgornik.
; This causes unavoidable INCOMPATIBILITY. [INCOMPAT]
Saudação
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Compilation problem with version 3.0.45

Post by esgici »

Hi Chris
This type of errors generally caused by changes in Harbour, not HMG.
Harbour Changelog wrote: 2008-05-22 10:30 UTC+0100 Viktor Szakats (harbour syenar.net)
...
* source/rdd/dbcmdx.c
+ Added dbPack() and dbZap() Xbase++
compatibility functions.
...
2008-04-26 07:53 UTC+0100 Viktor Szakats (harbour syenar.net)
...
+ source/rdd/dbcmdhb.c
+ Added non-internal versions of __dbPack() and __dbZap(),
named: hb_dbPack() and hb_dbZap(). If group needs it I
can add dbPack() and dbZap() too in separate files to
lessen the problem of name collision with app code.
So you need add

libs=hbxpp

line to your configuration ( "Configuration tab of IDE or .hbc file of your project )

or change dbPack() statements to Hb_dbPack() in your .prg files.

Regards
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Compilation problem with version 3.0.45

Post by Rathinagiri »

Carlos Reis wrote:Hello!
I would like first to thank all those who have developed the HMG.
It has been a great help in my work.
To all of you my thanks :!:
I recently downloaded the new version HMG 3.0.45
I work with databases in MYSQL
So I compiled the prg's that worked in previous versions with this new version,
but now I have a little problem.
Fields of type Tinyint in old versions return boolean values,
now with HMG 3.0.45 return a numeric value.
Do I have to change all my prg's or there is no way to resolve the problem ?
Thanks in advance
Hi Carlos Reis,

This is a fundamental change happened many versions before.

If you want to change all your prg's, you can do so. However, I did a workaround to revert back.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: Compilation problem with version 3.0.45

Post by chrisjx2002 »

Hi Escigi,

Thanks for your help.

Regarding dbpack, I change it for hb_dbpack and the compilation is now OK.

For the lib to add, as I don't use IDE for programming, is it possible to add the lib directly at the beginning of the programm? Something like #include ...

Regards
Post Reply