Page 1 of 1

FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 7:01 pm
by TimStone
The build is fine with FWH 15.10 but in 15.11 I get the following error:

xLINK: error: Unresolved external symbol '_GetComboBoxInfo referenced from FiveHCM.lib(NONCLIENT.obj)'.

xLINK: error: Unresolved external symbol '_GetListBoxInfo referenced from FiveHCM.lib(NONCLIENT.obj)'.

The error does not occur with VS 2013 / Harbour build

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 7:46 pm
by Antonio Linares
Again we need to create a xfw.lib from a xfw.def file:

I use peinfo.exe to inspect Windows user32.dll and obtain the ordinal number of each function:
https://bitbucket.org/fivetech/fivewin-contributions/downloads/peinfo.exe

xfw.def
Code: Select all  Expand view

LIBRARY     USER32.DLL

EXPORTS
    GetMenuInfo             @1871
    GetWindowLongPtr    @1968
    SetMenuInfo              @2291
    GetMenuBarInfo        @1867
    GetComboBoxInfo     @1814
    GetListBoxInfo          @1862
 


And finally:
lib.exe /def:xfw.def /out:xfw.lib

lib.exe is the Microsoft library manager, we used the lib.exe that comes with VC98

I am going to build it...

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 7:48 pm
by Antonio Linares

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 7:50 pm
by TimStone
Since we already link in an xfw.lib perhaps that should be included with fwh builds when changes occur ?

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 8:02 pm
by Antonio Linares
Tim,

I will try to organize it, thanks

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 8:13 pm
by TimStone
Thanks.

That built fine

Re: FWH 15:11 / xHarbour (.com ) build error

PostPosted: Tue Dec 29, 2015 8:35 pm
by Antonio Linares
thanks for your great feedback :-)