How to solve this ?
i'm compiling with harbour 3.2.0, before i used xharbour 1.2.3
Lines 7320, Functions/Procedures 18
Generating C source output to '\tmp\obj901\GER.c'... Done.
bcc32 -M -c -I\harbour\INCLUDE;\BCC74\INCLUDE -tW -o\tmp\obj901\GER.obj \tmp\obj901\GER.c
Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
\tmp\obj901\GER.c:
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 831: Call to function 'ISNIL' with no prototype in function HB_FUN_BOM
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 858: Call to function 'ISNIL' with no prototype in function HB_FUN_EOM
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 890: Call to function 'ISNIL' with no prototype in function HB_FUN_BOQ
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 918: Call to function 'ISNIL' with no prototype in function HB_FUN_EOQ
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 951: Call to function 'ISNIL' with no prototype in function HB_FUN_BOY
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 977: Call to function 'ISNIL' with no prototype in function HB_FUN_EOY
Warning W8065 \\SIS\\FSQL901\\LIB\\GER.PRG 1017: Call to function 'ISNIL' with no prototype in function HB_FUN_WOM
Turbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_ISNIL' referenced from C:\TMP\OBJ901\GER.OBJ
Error: Unresolved external '__hInstance' referenced from C:\BCC74\LIB\WIN32\CW32.LIB|exit
Error: Unresolved external '___CPPdebugHook' referenced from C:\BCC74\LIB\WIN32\CW32.LIB|xx
Error: Unresolved external '___System__GetTls' referenced from C:\BCC74\LIB\WIN32\CW32.LIB|xxv
Error: Unresolved external '_hb_retcAdopt' referenced from C:\SIS\FSQL901\LIB\SISREV.LIB|base64
Error: Unresolved external '_hb_retclenAdopt' referenced from C:\SIS\FSQL901\LIB\SISREV.LIB|base64
Tanks
Ari
- Code: Select all Expand view RUN
\sis\fsql901\lib\libmysql.lib +
\sis\fsql901\lib\mysqlclient.lib +
\sis\fsql901\lib\sisrev.lib, +
sisrev.exe, +
sisrev.map, +
\fwh2206\lib\FiveH.lib +
\fwh2206\lib\FiveHC.lib +
\harbour\lib\hbhpdf.lib +
\harbour\lib\libhpdf.lib +
\harbour\lib\png.lib +
\harbour\lib\hbwin.lib +
\harbour\lib\gtgui.lib +
\harbour\lib\hbrtl.lib +
\harbour\lib\hbvm.lib +
\harbour\lib\hblang.lib +
\harbour\lib\hbmacro.lib +
\harbour\lib\hbrdd.lib +
\harbour\lib\rddntx.lib +
\harbour\lib\rddcdx.lib +
\harbour\lib\rddfpt.lib +
\harbour\lib\hbsix.lib +
\harbour\lib\hbdebug.lib +
\harbour\lib\hbcommon.lib +
\harbour\lib\hbpp.lib +
\harbour\lib\hbcpage.lib +
\harbour\lib\hbcplr.lib +
\harbour\lib\hbct.lib +
\harbour\lib\hbpcre.lib +
\harbour\lib\xhb.lib +
\harbour\lib\hbziparc.lib +
\harbour\lib\hbmzip.lib +
\harbour\lib\hbzlib.lib +
\harbour\lib\minizip.lib +
\harbour\lib\hbusrrdd.lib +
\harbour\lib\hbtip.lib +
\harbour\lib\hbzebra.lib +
\harbour\lib\hbcurl.lib +
\harbour\lib\libcurl.lib +
\bcc74\lib\win32\cw32.lib +
\bcc74\lib\win32\import32.lib +
\bcc74\lib\win32\psdk\uuid.lib +
\bcc74\lib\win32\psdk\ws2_32.lib +
\bcc74\lib\win32\psdk\odbc32.lib +
\bcc74\lib\win32\psdk\nddeapi.lib +
\bcc74\lib\win32\psdk\iphlpapi.lib +
\bcc74\lib\win32\psdk\msimg32.lib +
\bcc74\lib\win32\psdk\psapi.lib +
\bcc74\lib\win32\psdk\rasapi32.lib +
\bcc74\lib\win32\psdk\gdiplus.lib +
\bcc74\lib\win32\psdk\shell32.lib,
- Code: Select all Expand view RUN
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include "hbapi.h"
#include "hbapiitm.h"
#include "hbdate.h"
HB_FUNC( BOM )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
hb_retd( iYear, iMonth, 1);
}
else
{
hb_retdl( 0 );
}
}
HB_FUNC( EOM )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
iMonth ++;
if( iMonth > 12)
{
iMonth = 1;
iYear ++;
}
hb_retdl( hb_dateEncode( iYear, iMonth, 1 ) - 1);
}
else
{
hb_retdl( 0 );
}
}
HB_FUNC( BOQ )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
iMonth -= ( iMonth - 1 ) % 3;
hb_retd( iYear, iMonth, 1 );
}
else
{
hb_retdl( 0 );
}
}
HB_FUNC( EOQ )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
iMonth += 3 - ( ( iMonth - 1 ) % 3 );
if( iMonth > 12 )
{
iMonth = 1;
iYear ++;
}
hb_retdl( hb_dateEncode( iYear, iMonth, 1 ) - 1 );
}
else
{
hb_retdl( 0 );
}
}
HB_FUNC( BOY )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
hb_retd( iYear, 1, 1 );
}
else
{
hb_retdl( 0 );
}
}
HB_FUNC( EOY )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
hb_retdl( hb_dateEncode( iYear + 1, 1, 1 ) - 1 );
}
else
{
hb_retdl( 0 );
}
}
static int hb_wom( int iYear, int iMonth, int iDay )
{
int iWom;
HB_TRACE(HB_TR_DEBUG, ("hb_wom(%d, %d, %d)", iYear, iMonth, iDay));
iWom = iDay + hb_dateDOW( iYear, iMonth, 1 ) - 1;
if( iWom > 0 )
return ( iWom - hb_dateDOW( iYear, iMonth, iDay ) ) / 7 + 1;
else
return 0;
}
HB_FUNC( WOM )
{
LONG lDate;
int iYear, iMonth, iDay;
if( ISNIL(1) )
{
hb_dateToday( &iYear, &iMonth, &iDay );
lDate = hb_dateEncode(iYear, iMonth, iDay);
}
else
{
lDate = hb_pardl( 1 );
}
if( lDate != 0 )
{
hb_dateDecode( lDate, &iYear, &iMonth, &iDay );
hb_retni( hb_wom( iYear, iMonth, iDay ) );
}
else
{
hb_retni( 0 );
}
}
#pragma ENDDUMP