I'm compiling a program that use the Hb_ZIPFILE function and I'm getting linking errors when compiling with buildx.bat. IF I use the xBuild Project Builder it links with no problems.
Errors:
- Code: Select all Expand view
- Generating C source output to 'CONVDEPT.c'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
CONVDEPT.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'std::_String_base::_Xran() const' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstorage
Error: Unresolved external 'std::_String_base::_Xlen() const' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstorage
Error: Unresolved external 'std::locale::id::_Id_cnt' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
Error: Unresolved external 'std::locale::_Getfacet(unsigned int) const' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
Error: Unresolved external 'std::_Locinfo::~_Locinfo()' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
Error: Unresolved external 'std::_Locinfo::_Locinfo(const char *)' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
Error: Unresolved external '__Getctyptab' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
Error: Unresolved external 'std::locale::facet::_Register()' referenced from C:\XHARBOURB\LIB\HBZIP.LIB|zipstring
* Linking errors *
Program:
- Code: Select all Expand view
STATIC FUNCTION Compress (cFile, aFiles)
LOCAL oDlg, oMeter, oText, nI, cMsg, nLen, lVal, nActual := 0
nLen := LEN(aFiles)
DEFINE DIALOG oDlg FROM 1, 1 TO 10, 60 TITLE "Backup in progress..."
@ 0.5, 2 SAY oText VAR cMsg SIZE 180, 20 OF oDlg
@ 2, 2 METER oMeter VAR nActual TOTAL 100 OF oDlg SIZE 200, 20
nI := 1
oDlg:bStart:={|| lVal := Hb_ZIPFILE ( cFile, aFiles, 9, {|cFile,nPos| oText:;
SetText('Compressing' + cFile), ;
nActual := nPos / nLen * 100, oMeter: ;
Set(nActual)} ), ;
IIF(lVal, MsgWait('Backup completed. File: ' + cFile, "Backup Information", 5), ;
MsgStop('Backup Failed')), oDlg:END()}
ACTIVATE DIALOG oDlg CENTERED
RETURN lVal
// EOF: Compress