Page 1 of 1

error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 2:10 pm
by kajot
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

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 2:28 pm
by Antonio Linares
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: Select all  Expand view

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 )
 

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 3:39 pm
by kajot
thanks

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

best regards
kajot

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 4:57 pm
by Antonio Linares
Kajot,

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

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 5:22 pm
by kajot
I don't use tActiveX.

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 5:45 pm
by Antonio Linares
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.

Re: error , FWH.905 & xHB.53

PostPosted: Sat Jun 20, 2009 6:12 pm
by kajot
I use xBUILDW.EXE , how may I turn off axtivex.lib .