qualcuno potrebbe postare un semplice batch che fa tutto, compreso il reinserimento nella libreria fivehc.lib?
grazie, a presto
![Wink :wink:](./images/smilies/icon_wink.gif)
Moderator: Enrico Maria Giordano
Code: Select all
@ ECHO OFF
COPY c:\fwharbour\source\function\*.prg
COPY c:\fwharbour\source\winapi\*.prg
COPY c:\fwharbour\source\classes\*.prg
DEL expbuild.prg
DEL db10.prg
DEL odbc32.prg
DEL dbm.prg
DEL vbxctrl.prg
DEL _index.prg
DEL dbms.prg
DEL ddeserv.prg
DEL field.prg
DEL tnewsins.prg
DEL c3.prg
SET HARBOURCMD=/a /es1 /gc0 /l /m /n /q /w
SET INCLUDE=c:\fwharbour\include;c:\xharbour\include
FOR %%i IN (*.prg) DO c:\xharbour\harbour %%i
SET HARBOURCMD=
SET INCLUDE=
IF EXIST *.prg DEL *.prg
FOR %%i IN (*.c) DO c:\bcc55\bin\bcc32 +xharbour.cfg -c %%i
IF EXIST *.c DEL *.c
FOR %%i IN (*.obj) DO c:\bcc55\bin\tlib Fivehx /P32 +%%i
IF EXIST *.obj DEL *.obj
IF EXIST *.bak DEL *.bak
IF EXIST fivehx.lib COPY fivehx.lib c:\fwharbour\lib
IF EXIST fivehx.lib DEL fivehx.lib
Code: Select all
-5
-DHB_FM_STATISTICS_OFF
-DHB_GUI
-DHB_NO_PROFILER
-DHB_NO_TRACE
-DHB_WIN32_IO
-Ic:\fwharbour\include;c:\xharbour\include;c:\bcc55\include
-k-
-O1
-O2
-OS
-Ov
-v-
-W
-w
-w-inl-
Quando però linko un progetto xHarbour, mi dà l’errore:@ ECHO OFF
echo -------------------------------------------------
echo MODIFICA SORGENTI NELLE LIBRERIE XHARBOUR
echo sintassi: compila nome_sorgente_c nome_lib_fw
echo tutto SENZA estensioni
echo -------------------------------------------------
pause
c:\borland\bcc55\bin\bcc32 +xharbour.cfg -c %1.c
pause
c:\borland\bcc55\bin\tlib c:\fwh\lib\%2 /P32 -+%1.obj
IF EXIST *.obj DEL *.obj
IF EXIST *.bak DEL *.bak
Pause