script to create lib (FWH)

script to create lib (FWH)

Postby kajot » Sat May 17, 2008 6:14 pm

is the script to create lib (FWH) in xHARBOUR.COM
best regards
kajot
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Postby Robert Frank » Sat May 17, 2008 7:22 pm

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
Robert Frank
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Postby kajot » Sat May 17, 2008 8:13 pm

I used xHarbour.com where C compiler is xCC
best regards
kajot
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Postby kajot » Sat May 17, 2008 8:26 pm

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<<<
best regards
kajot
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland

Postby Antonio Linares » Sat May 17, 2008 10:57 pm

Kajot,

There is a new HelpChm.prg that has to be included in the library
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby kajot » Sun May 18, 2008 5:23 am

thank YOU
best regards
kajot
User avatar
kajot
 
Posts: 339
Joined: Thu Nov 02, 2006 6:53 pm
Location: Poland


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests