FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Trouble with new build
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Trouble with new build
Posted: Thu Jan 01, 2009 04:36 PM

Hello Antonio

best wishes for the wew year on this jan 1st

I have upgraded to the last fwppc build, when i try to build my application i get the following errors

FiveCE.lib(COMBOBOX.obj) : error LNK2001: unresolved external symbol HB_FUN_ANSITOWIDE
FiveCE.lib(REG32.obj) : error LNK2001: unresolved external symbol HB_FUN_ANSITOWIDE
FiveCE.lib(TFTP.obj) : error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
FiveCE.lib(TFTP.obj) : error LNK2001: unresolved external symbol HB_FUN_WIDETOANSI

Btw the make files in the make directory have to be changed as harbour libs have been renamed
rtl.lib is now hbrtl.lib
same for vm.lib etc...

the make file looks like this now for this part

echo $(FWDIR)\lib\FiveCE.lib $(FWDIR)\lib\FiveCEC.lib >> msvc.tmp

echo $(HBDIR)\lib\hbrtl.lib >> msvc.tmp
echo $(HBDIR)\lib\hbvm.lib >> msvc.tmp
echo $(HBDIR)\lib\gtgui.lib >> msvc.tmp
echo $(HBDIR)\lib\hblang.lib >> msvc.tmp
echo $(HBDIR)\lib\hbmacro.lib >> msvc.tmp
echo $(HBDIR)\lib\hbrdd.lib >> msvc.tmp
echo $(HBDIR)\lib\rddntx.lib >> msvc.tmp
echo $(HBDIR)\lib\rddcdx.lib >> msvc.tmp
echo $(HBDIR)\lib\rddfpt.lib >> msvc.tmp
echo $(HBDIR)\lib\hbsix.lib >> msvc.tmp
echo $(HBDIR)\lib\hbdebug.lib >> msvc.tmp
echo $(HBDIR)\lib\hbcommon.lib >> msvc.tmp
echo $(HBDIR)\lib\hbpp.lib >> msvc.tmp
echo $(HBDIR)\lib\hbcpage.lib >> msvc.tmp

thanks for the help,

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Trouble with new build
Posted: Thu Jan 01, 2009 06:16 PM

Richard,

You have to link Harbour's hbw32.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Trouble with new build
Posted: Fri Jan 02, 2009 05:50 AM

Antonio

After adding hbw32.lib i get more unresolved, am i missing any other lib ?

FiveCE.lib(TFTP.obj) : error LNK2001: unresolved external symbol HB_FUN_GETLASTERROR
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SysFreeString referenced in function "unsigned short * __cdecl hb_oleAnsiToSysString(char )" (?hb_oleAnsiToSysString@@YAPAGPAD@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SysAllocStringLen referenced in function "unsigned short * __cdecl hb_oleAnsiToSysString(char
)" (?hb_oleAnsiToSysString@@YAPAGPAD@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol VariantInit referenced in function HB_FUNHBOLE_INIT
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SysStringLen referenced in function HB_FUN_ANSITOWIDE
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayPutElement referenced in function "void
cdecl hb_oleItemToVariant(struct tagVARIANT ,struct _HB_ITEM )" (?hb_oleItemToVariant@@YAXPAUtagVARIANT@@PAU_HB_ITEM@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayCreate referenced in function "void __cdecl hb_oleItemToVariant(struct tagVARIANT ,struct _HB_ITEM )" (?hb_oleItemToVariant@@YAXPAUtagVARIANT@@PAU_HB_ITEM@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol VariantClear referenced in function "void __cdecl hb_oleItemToVariant(struct tagVARIANT ,struct _HB_ITEM )" (?hb_oleItemToVariant@@YAXPAUtagVARIANT@@PAU_HB_ITEM@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayGetDim referenced in function "long __cdecl hb_oleVariantToItem(struct _HB_ITEM ,struct tagVARIANT )" (?hb_oleVariantToItem@@YAJPAU_HB_ITEM@@PAUtagVARIANT@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol VarR8FromDec referenced in function "long __cdecl hb_oleVariantToItem(struct _HB_ITEM ,struct tagVARIANT )" (?hb_oleVariantToItem@@YAJPAU_HB_ITEM@@PAUtagVARIANT@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol VarR8FromCy referenced in function "long __cdecl hb_oleVariantToItem(struct _HB_ITEM ,struct tagVARIANT )" (?hb_oleVariantToItem@@YAJPAU_HB_ITEM@@PAUtagVARIANT@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol IID_IDispatch referenced in function "long __cdecl hb_oleVariantToItem(struct _HB_ITEM ,struct tagVARIANT )" (?hb_oleVariantToItem@@YAJPAU_HB_ITEM@@PAUtagVARIANT@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayGetElement referenced in function "struct _HB_ITEM * __cdecl SafeArrayToArray(struct tagSAFEARRAY ,unsigned int,long ,unsigned short)" (?SafeArrayToArray@@YAPAU_HB_ITEM@@PAUtagSAFEARRAY@@IPAJG@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayGetUBound referenced in function "struct _HB_ITEM * __cdecl SafeArrayToArray(struct tagSAFEARRAY ,unsigned int,long ,unsigned short)" (?SafeArrayToArray@@YAPAU_HB_ITEM@@PAUtagSAFEARRAY@@IPAJG@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol SafeArrayGetLBound referenced in function "struct _HB_ITEM * __cdecl SafeArrayToArray(struct tagSAFEARRAY ,unsigned int,long ,unsigned short)" (?SafeArrayToArray@@YAPAU_HB_ITEM@@PAUtagSAFEARRAY@@IPAJG@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol GUID_NULL referenced in function "long __cdecl OleGetProperty(struct IDispatch ,long,struct tagDISPPARAMS )" (?OleGetProperty@@YAJPAUIDispatch@@JPAUtagDISPPARAMS@@@Z)
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol IID_IEnumVARIANT referenced in function HB_FUN_TOLEAUTO_OLENEWENUMERATOR
hbw32.lib(w32ole.obj) : error LNK2019: unresolved external symbol VariantCopy referenced in function "long __cdecl OleGetValue(struct IDispatch *)" (?OleGetValue@@YAJPAUIDispatch@@@Z)

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Trouble with new build
Posted: Fri Jan 02, 2009 09:14 AM

Richard,

It seems as you are linking in C++ mode. You have to link in C mode now (due to Harbour changes).

Please review samples\buildce.bat linking flags to be used, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion