recompiling C sources

recompiling C sources

Postby Maverich » 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
User avatar
Maverich
 
Posts: 31
Joined: Sun Oct 09, 2005 8:29 pm
Location: Prato, Italia

Re: recompiling C sources

Postby Enrico Maria Giordano » Tue Sep 12, 2006 11:27 am

You have to use clp2harb utility.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maverich » Wed Sep 13, 2006 7:10 am

which is the input of clp2harb.exe? the obj generated compiling the c source?
Riccardo
User avatar
Maverich
 
Posts: 31
Joined: Sun Oct 09, 2005 8:29 pm
Location: Prato, Italia

Postby Enrico Maria Giordano » Wed Sep 13, 2006 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 73 guests