FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support compilazione C dei sorgenti FWH
Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
compilazione C dei sorgenti FWH
Posted: Tue Aug 22, 2006 09:36 AM

quali opzioni vanno specificate per ricompilare alcuni sorgenti (fonts.c, ecc.) dei sources delle FWH 2.6 con borland bcc32?
qualcuno potrebbe postare un semplice batch che fa tutto, compreso il reinserimento nella libreria fivehc.lib?

grazie, a presto :wink:

Riccardo
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: compilazione C dei sorgenti FWH
Posted: Tue Aug 22, 2006 11:33 AM
Per xHarbour:

@ 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


dove xharbour.cfg è

-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-


Controlla i percorsi!

EMG
Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
compilazione C dei sorgenti FWH
Posted: Sun Aug 27, 2006 09:20 PM
Ciao Enrico,
scusami se ti rispondo solo adesso, sono ancora a metà servizio. Forse non mi sono spiegato. Io devo ricompilare dei sorgenti C (nell’esempio sotto mgetcrea.c) della cartella sources\winapi. La compilazione e il successivo reinserimento in libreria fivehc.lib non danno errori, uso il seguente file batch:
@ 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

Quando però linko un progetto xHarbour, mi dà l’errore:
Error: Unresolved external '_HB_FUN_MGETCREATE' referenced from C:\FWH\LIB\FIVEHX.LIB|MGET

Immagino manchi qualche parametro, sapresti aiutarmi?
Ciao, Grazie.
Riccardo
Riccardo
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
compilazione C dei sorgenti FWH
Posted: Mon Aug 28, 2006 10:06 AM

Non mi pare che manchino parametri.

EMG

Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
compilazione C dei sorgenti FWH
Posted: Tue Sep 12, 2006 09:56 AM

ciao Enrico,
hai fatto una prova anche tu? Non funziona neanche a te?
Non so come fare a risolvere il problema, proverò sul forum inglese.
ciao.

Riccardo
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
compilazione C dei sorgenti FWH
Posted: Tue Sep 12, 2006 11:43 AM

I sorgenti in C delle Fivewin sono scritti per essere compilati con Clipper. Per compilarli con xHarbour devi farli prima trasformare dall'utility clp2harb che trovi nella cartella tools delle FWH.

EMG

Posts: 31
Joined: Sun Oct 09, 2005 08:29 PM
compilazione C dei sorgenti FWH
Posted: Wed Sep 13, 2006 07:14 AM

Grazie Enrico, a presto :D

Riccardo

Continue the discussion