Page 1 of 1

recompiling C sources

Posted: Tue Sep 12, 2006 10:08 am
by Maverich
I need to recompile some sources (like mgetcrea.c) in sources\winapi folder of fw 2.6. I use a batch file for compiling:
@ 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
I get no error doing it, but linking the modified lib to a project cuases the error:
Error: Unresolved external '_HB_FUN_MGETCREATE' referenced from C:\FWH\LIB\FIVEHX.LIB|MGET
do I need other parameters? what am I doing wrong?
regards

Re: recompiling C sources

Posted: Tue Sep 12, 2006 11:27 am
by Enrico Maria Giordano
You have to use clp2harb utility.

EMG

Posted: Tue Sep 12, 2006 11:54 am
by Antonio Linares
Riccardo,

clp2harb is located at c:\fwh\tools\clp2harb.exe and clp2harb.prg

Posted: Wed Sep 13, 2006 7:10 am
by Maverich
which is the input of clp2harb.exe? the obj generated compiling the c source?

Posted: Wed Sep 13, 2006 7:25 am
by Enrico Maria Giordano
Maverich wrote:which is the input of clp2harb.exe? the obj generated compiling the c source?
No, the source code. The utility changes CLIPPER in HB_FUNC and other similar things.

EMG