Compilation problem with version 3.0.45
Moderator: Rathinagiri
-
chrisjx2002
- Posts: 192
- Joined: Wed Jan 06, 2010 5:39 pm
Compilation problem with version 3.0.45
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
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
- 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
What is the project you want to compile ?chrisjx2002 wrote:...What is the solution to this problem?
Regards
Viva INTERNATIONAL HMG 
- 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
Hi Chris
It's difficult to explore the source of problem by given info
Please try add
line to your configuration ( "configuration" tab of IDE or .hbc file of your project ).
Regards
Please don't misunderstand, I want say "your project is one of HMG sample or not ?"chrisjx2002 wrote: I have theses errors messages with the last hmg version :
...
What is the solution to this problem?
It's difficult to explore the source of problem by given info
Please try add
Code: Select all
libs=hbvpdfRegards
Viva INTERNATIONAL HMG 
-
chrisjx2002
- Posts: 192
- Joined: Wed Jan 06, 2010 5:39 pm
Re: Compilation problem with version 3.0.45
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
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
- 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
Hi Chris
Does other errors ( other than "dbpack" ) fixed by "libs=..." ?
If so could you give the statement used "dbpack" in ?
Regards
This type of errors generally caused by changes in Harbour, not HMG.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).
Does other errors ( other than "dbpack" ) fixed by "libs=..." ?
If so could you give the statement used "dbpack" in ?
Regards
Viva INTERNATIONAL HMG 
- Carlos Reis
- Posts: 16
- Joined: Sat Oct 09, 2010 3:31 pm
- Location: Portugal
Re: Compilation problem with version 3.0.45
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
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
Carlos Reis, Portugal
39º 46' 47" N
08º 55' 45 W
- 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
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
SaudaçãoHarbour 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]
Viva INTERNATIONAL HMG 
- 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
Hi Chris
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
This type of errors generally caused by changes in Harbour, not HMG.
So you need addHarbour 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.
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 
- 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
Hi Carlos Reis,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
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.
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
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
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