This is xhbfs.c
#include "hbapi.h" HB_FUNC_EXTERN( HB_DIREXISTS ) ; HB_FUNC( ISDIRECTORY ) { HB_FUNC_EXEC( HB_DIREXISTS ); } HB_FUNC_EXTERN( HB_FSIZE ) ; HB_FUNC( FILESIZE ) { HB_FUNC_EXEC( HB_FSIZE ); } HB_FUNC_EXTERN( HB_DISABLEWAITLOCKS ) ; HB_FUNC( DISABLEWAITLOCKS ) { HB_FUNC_EXEC( HB_DISABLEWAITLOCKS ); } and this is the function in files.c in HBCT HB_FUNC( FILESIZE ) { PHB_FFIND ffind = _hb_fileStart( HB_FALSE, HB_FA_ALL ); hb_retnint( ffind ? ffind->size : -1 ); } This generates this error using hbmk2 Generating C source output to '/tmp/hbmk_268dy6.dir/us_registry.c'... Done. /usr/local/lib/harbour/libhbct.a(files.o): In function `HB_FUN_FILESIZE': files.c:(.text+0x610): multiple definition of `HB_FUN_FILESIZE' /usr/local/lib/harbour/libxhb.a(xhbfs.o):xhbfs.c:(.text+0x10): first defined here Bruno 2010/5/30 Viktor Szakáts <harbour...@syenar.hu> > I've checked and xhb doesn't have a FILESIZE, so > it can be deleted from xhb. > > Viktor > > On 2010 May 30, at 19:30, Bruno Luciani wrote: > > > It is posible that this function: filesize > > > > exists in two libraries ? > > > > files.c in LIBHBCT > > > > and > > > > xhbfs.c in LIBXHB > > > > Thanks for any help > > > > Bruno > > _______________________________________________ > > Harbour mailing list (attachment size limit: 40KB) > > Harbour@harbour-project.org > > http://lists.harbour-project.org/mailman/listinfo/harbour > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour >
_______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour