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

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

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

Post 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
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

I have no fwh\makes directory

Post by dutch »

Dear Antonio,

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

Regards,
Dutch
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: I have no fwh\makes directory

Post 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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Thanks

Post by dutch »

Dear Antonio&Richard,

Thanks a lot, I got it.

Regards,
Dutch
User avatar
Armando
Posts: 2479
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México
Contact:

Post 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
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Vladimir Rudomanov
Posts: 4
Joined: Tue Nov 29, 2005 5:33 am
Location: Russia

Post 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
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

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