Missing LIB

Missing LIB

Postby byte-one » Mon Mar 02, 2020 2:51 pm

In fwpdf.prg ther are:
Code: Select all  Expand view
* link with \fwh\lib\hbhpdf.lib, libhpdf.lib

but the \fwh\lib\hbhpdf.lib are not present!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Missing LIB

Postby ukoenig » Mon Mar 02, 2020 3:07 pm

Günther,

but the \fwh\lib\hbhpdf.lib are not present!


I found the files inside the xHarbour\lib - directory

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Missing LIB

Postby byte-one » Mon Mar 02, 2020 3:40 pm

Uwe,
it seems, that the C-function HPDF_Page_TextRect() are missing in the lib from (x)harbour. (or in source fwpdf.prg!?)
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Re: Missing LIB

Postby nageswaragunupudi » Mon Mar 02, 2020 7:37 pm

from buildh.bat and buildx.bat:
Code: Select all  Expand view
echo %hdirl%\hbhpdf.lib + >> b32.bc
echo %hdirl%\libhpdf.lib + >> b32.bc
 

Please link these two libs from (x)Harbour\lib folder.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Missing LIB

Postby nageswaragunupudi » Mon Mar 02, 2020 7:41 pm

byte-one wrote:Uwe,
it seems, that the C-function HPDF_Page_TextRect() are missing in the lib from (x)harbour. (or in source fwpdf.prg!?)

We are able to link the programs without any unresolved externals.

Please try building the programs pdfharu1.prg, pdfharu2.prg, print01.prg, print02.prg and pdfh.prg in fwh\samples folder with buildh.bat or buildx.bat.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Missing LIB

Postby byte-one » Tue Mar 03, 2020 9:36 am

After compiling fwpdf.prg:
Error: Unresolved external 'HPDF_Page_TextRect(void *, float, float, float, float, const char *, unsigned int, unsigned int *)' referenced from C:\EUROSTAR\FWPDF.OBJ

If i remove all 'HPDF_Page_TextRect(...) it compiles and link correct!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Missing LIB

Postby nageswaragunupudi » Tue Mar 03, 2020 9:54 am

After compiling fwpdf.prg:

why do you compile fwpdf.prg? That is already a part of the library.

As I said before try building these five samples programs in the samples folder using buildh.bat or buildx.bat
pdfharu1.prg, pdfharu2.prg, print01.prg, print02.prg and pdfh.prg
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Missing LIB

Postby byte-one » Tue Mar 03, 2020 11:26 am

I must compile fwpdf.prg as it is incompatible with printer.prg in case of ::say(...). And where are the source from HPDF_Page_TextRect(--)?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Missing LIB

Postby nageswaragunupudi » Wed Mar 04, 2020 8:01 pm

HPDF_Page_TextRect is in \harbour\lib\libhpdf.lib.

buildh.bat links the library \harbour\lib\libhpdf.lib.

In the case of xHarbour, this function is in \xharbour\lib\libharu.lib.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Missing LIB

Postby byte-one » Thu Mar 05, 2020 12:41 pm

Mr. Nages, in fwpdf is this code. If i remove from source this code the linking is ok!
Code: Select all  Expand view
#pragma BEGINDUMP

#include <hbapi.h>

HB_LONG
HPDF_Page_TextRect  ( void *          page,
                     float            left,
                     float            top,
                     float            right,
                     float            bottom,
                     const char       *text,
                     HB_UINT   align,
                     HB_UINT           *len);


HB_FUNC_STATIC( HPDF_PAGE_TEXTRECT )
{
   HB_UINT len;

   hb_retnl( ( long ) HPDF_Page_TextRect(  hb_parptr( 1 ), hb_parnd( 2 ),
      hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ), hb_parc( 6 ),
      hb_parni( 7 ), &len ) );
   hb_storni( len, 8 );

}

#pragma ENDDUMP
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Missing LIB

Postby nageswaragunupudi » Thu Mar 05, 2020 1:05 pm

It should be possible to link with this code. This code is required for some methods.

Can you please clarify this point first?
Without making any changes to the FWH libraries, are you able to build (1) pdfharu1.prg, (2) pdfharu2.prg, (3) print01.prg, (4) print02.prg and (5) pdfh.prg, with buildh.bat or not?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Missing LIB

Postby byte-one » Thu Mar 05, 2020 2:10 pm

Can build all correctly!
Only in pdfharu2 this error:

Called from: => __ERRRT_SBASE( 0 )
Called from: ../../../tobject.prg => FWPDF:ERROR( 0 )
Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )
Called from: ../../../tobject.prg => FWPDF:MSGNOTFOUND( 0 )
Called from: ../../../tobject.prg => FWPDF:CFILE( 0 )
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE( 914 )
Called from: pdfharu2.prg => SHOWWONDERS( 115 )
Called from: pdfharu2.prg => MAIN( 28 )
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Missing LIB

Postby nageswaragunupudi » Thu Mar 05, 2020 2:25 pm

Thanks
I will look into the error in pdfharu2.prg

You are able to build all other prgs using harupdf.
The original fwpdf.prg in the fwh libs refers to the function HPDF_Page_TextRect. But you are not getting that function as unresolved external.

So, logically speaking, even if you recompile fwpdf.prg you should not get unresolved external. Please recheck your libraries and library paths you are linking and specifically pay attention to the buildh.bat and your own link scripts.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests