FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour error , FWH.905 & xHB.53
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
error , FWH.905 & xHB.53
Posted: Sat Jun 20, 2009 02:10 PM

when I linke my sources I will get error

Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"D:\fwh\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "t.obj" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"t.exe"<<<

Creating object: t.EXP

Creating library: t.LIB

xLINK: error: Unresolved external symbol '??2@YAPAXI@Z referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '??3@YAXPAX@Z referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLEINVOKE referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLESETPROPERTY referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: error: Unresolved external symbol '_HB_FUN_OLEGETPROPERTY referenced from Fivehcm.lib(ACTX.obj)'.

xLINK: fatal error: 5 unresolved external(s).

Type: C >>>Couldn't build: t.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1411<<<

I used FWH.905 and the last version xharbour /053/ / Pelles ISO C Compiler, Version 2.71.0 /

best regards
kajot

best regards

kajot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 02:28 PM
Kajot,

You have to link this xhb.obj file:
http://www.fivetechsoft.com/files/xhb.obj

and also add this source code in one of your PRGs:
Code (fw): Select all Collapse
function OleInvoke( hObj, cMethod, ... )

#ifndef __XHARBOUR__
   return __ObjSendMsg( TOleAuto():New( hObj ), cMethod, ... )
#else   
   local aParams := hb_aParams()

   aParams[ 1 ] = TOleAuto():New( hObj )

   return hb_execFromArray( @__ObjSendMsg(), aParams )   
#endif 

function OleSetProperty( hObj, cPropName, uValue )

return __ObjSendMsg( TOleAuto():New( hObj ), "_" + cPropName, uValue )

function OleGetProperty( hObj, cPropName )

return __ObjSendMsg( TOleAuto():New( hObj ), cPropName )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 03:39 PM

thanks

but, I always have to add it to my source.

best regards
kajot

best regards

kajot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 04:57 PM

Kajot,

Only if you use TActiveX. If not, then PellesC should not try to link it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 05:22 PM

I don't use tActiveX.

best regards

kajot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 05:45 PM

Kajot,

> I don't use tActiveX

Then it seems as a PellesC linker error, as it should not try to link it.

If you make a search for ActiveX in all PRGs you will see that ActiveX only appears in its own class source code.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
Re: error , FWH.905 &amp; xHB.53
Posted: Sat Jun 20, 2009 06:12 PM

I use xBUILDW.EXE , how may I turn off axtivex.lib .

best regards

kajot

Continue the discussion