Page 1 of 1

example for compile and link many PRG files with HB/FWH

Posted: Thu Dec 01, 2005 8:41 am
by dutch
Dear All,

Can I get an example to compile and link many PRG file for Harbour&FWH? This question may ask many time but I cannot find it.

Thanks&Regards,
Dutch

Posted: Thu Dec 01, 2005 9:15 am
by Antonio Linares
Dutch,

You may easily modify samples\buildx.bat to use more than one PRG:

%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE

%hdir%\bin\harbour another /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

echo -O2 -eanother.exe -I%hdir%\include another.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE

...

echo c0w32.obj + > b32.bc
echo %1.obj another.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
...

Posted: Thu Dec 01, 2005 9:16 am
by Antonio Linares
You may also review fwh\makes directory working samples to use a Borland make or a Microsoft make instead of a batch file.

I have no fwh\makes directory

Posted: Thu Dec 01, 2005 9:57 am
by dutch
Dear Antonio,

I have no FWH\MAKES directory. Have you got an examples?

Regards,
Dutch

Re: I have no fwh\makes directory

Posted: Thu Dec 01, 2005 10:45 am
by Richard Chidiak
dutch wrote:Dear Antonio,

I have no FWH\MAKES directory. Have you got an examples?

Regards,
Dutch
Dutch

Check my reply to Vladimir in this forum, i have joined a working sample

Richard

Thanks

Posted: Thu Dec 01, 2005 11:35 am
by dutch
Dear Antonio&Richard,

Thanks a lot, I got it.

Regards,
Dutch

Posted: Thu Dec 01, 2005 5:59 pm
by Armando
Dutch:

Pls test VERCE an excellent GUI to compile all your project and to create Libs.

www.esm.com.mx/fivewin/index.htm

Regards, Armando

Posted: Fri Dec 02, 2005 8:05 am
by Vladimir Rudomanov
Armando wrote:Dutch:

Pls test VERCE an excellent GUI to compile all your project and to create Libs.

www.esm.com.mx/fivewin/index.htm

Regards, Armando
Regrettably no interface on english

Posted: Fri Dec 02, 2005 8:42 am
by Silvio
Use XMate!!!!
With this program You Can create LIB, DLL, and EXE program in five minutes !!!!!
it run with clipper,fw,c3,xharbour,harbour.....

Regards

Posted: Fri Dec 02, 2005 1:24 pm
by Rick Lipkin
YES .. xMate is a great make and project manager .. jI recently uploaded new xMate environments for Borland and MSVC to their website..

http://www.geocities.com/wowbase/xMate.html

Rick Lipkin
SC Dept of Health, USA