FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour recompiling C sources
Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
recompiling C sources
Posted: Tue Sep 12, 2006 10:08 AM
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
Riccardo
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: recompiling C sources
Posted: Tue Sep 12, 2006 11:27 AM

You have to use clp2harb utility.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
recompiling C sources
Posted: Tue Sep 12, 2006 11:54 AM

Riccardo,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
recompiling C sources
Posted: Wed Sep 13, 2006 07:10 AM

which is the input of clp2harb.exe? the obj generated compiling the c source?

Riccardo
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
recompiling C sources
Posted: Wed Sep 13, 2006 07:25 AM
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

Continue the discussion