Trouble with new build

Trouble with new build

Postby Richard Chidiak » Thu Jan 01, 2009 4: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Trouble with new build

Postby Antonio Linares » Thu Jan 01, 2009 6:16 pm

Richard,

You have to link Harbour's hbw32.lib too
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Trouble with new build

Postby Richard Chidiak » Fri Jan 02, 2009 5: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_FUN___HB_OLE_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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: Trouble with new build

Postby Antonio Linares » Fri Jan 02, 2009 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 24 guests