Page 1 of 1
script to create lib (FWH)
Posted: Sat May 17, 2008 6:14 pm
by kajot
is the script to create lib (FWH) in xHARBOUR.COM
Posted: Sat May 17, 2008 7:22 pm
by Robert Frank
I use two batch files
bx.bat
@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄż
ECHO ł FiveWin for xHarbour 2.7 - June 2006 RF xHarbour development power łÜ
ECHO ł (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP łŰ
ECHO ŔÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄŮŰ
ECHO ˙ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
set hdir=c:\xharbour
set bcdir=c:\Borland\bcc55
set fwhdir=c:\FWH
%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include;%fwhdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:PAUSE
:EXIT
and amake.bat
call bx.bat X_CDX
call bx.bat X_D2MC
call bx.bat X_DATA
call bx.bat X_FIMED
call bx.bat X_FIRMA
call bx.bat X_GETIP
call bx.bat X_HISTOG
call bx.bat X_KEYTST
call bx.bat X_MC
call bx.bat X_PASSWO
call bx.bat X_PESEL
call bx.bat X_POLSKA
call bx.bat X_POMOCE
call bx.bat X_ROKWIN
call bx.bat X_SIEC
call bx.bat X_TRACE
call bx.bat X_USE
del MyToolsH.lib
c:\Borland\BCC55\Bin\tlib MyToolsH +X_CDX
c:\Borland\BCC55\Bin\tlib MyToolsH +X_D2MC
c:\Borland\BCC55\Bin\tlib MyToolsH +X_DATA
c:\Borland\BCC55\Bin\tlib MyToolsH +X_FIMED
c:\Borland\BCC55\Bin\tlib MyToolsH +X_FIRMA
c:\Borland\BCC55\Bin\tlib MyToolsH +X_GETIP
c:\Borland\BCC55\Bin\tlib MyToolsH +X_HISTOG
c:\Borland\BCC55\Bin\tlib MyToolsH +X_KEYTST
c:\Borland\BCC55\Bin\tlib MyToolsH +X_MC
c:\Borland\BCC55\Bin\tlib MyToolsH +X_PASSWO
c:\Borland\BCC55\Bin\tlib MyToolsH +X_PESEL
c:\Borland\BCC55\Bin\tlib MyToolsH +X_POLSKA
c:\Borland\BCC55\Bin\tlib MyToolsH +X_POMOCE
c:\Borland\BCC55\Bin\tlib MyToolsH +X_ROKWIN
c:\Borland\BCC55\Bin\tlib MyToolsH +X_SIEC
c:\Borland\BCC55\Bin\tlib MyToolsH +X_TRACE
c:\Borland\BCC55\Bin\tlib MyToolsH +X_USE
copy MyToolsH.lib c:\FWH_MYLB\MyToolsH.lib
del *.obj
del *.ppo
del *.c
del *.bc
to create one of my lib files
Posted: Sat May 17, 2008 8:13 pm
by kajot
I used xHarbour.com where C compiler is xCC
Posted: Sat May 17, 2008 8:26 pm
by kajot
I created fivewin.lib ( FWH 8.05), but when I compile some prg I get error
Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"D:\xHB\lib" -LIBPATH:"D:\xHB\c_lib" -LIBPATH:"D:\xHB\c_lib\win" -LIBPATH:"D:\fwh\lib" "report.obj" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3.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:"report.exe"<<<
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPTOPIC'.
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPINDEX'.
xLINK: error: Unresolved external symbol '_HB_FUN_CHMHELPPOPUP'.
xLINK: fatal error: 3 unresolved external(s).
Type: C >>>Couldn't build: report.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>> 1360<<<
Posted: Sat May 17, 2008 10:57 pm
by Antonio Linares
Kajot,
There is a new HelpChm.prg that has to be included in the library
Posted: Sun May 18, 2008 5:23 am
by kajot
thank YOU