FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Compile Question
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Compile Question

Posted: Wed Sep 29, 2010 05:15 PM

HI,

This may be a very stupid question :oops: but i am working on a new application and wanted to have multiple prg files to separate different aspects of the program.

The last application I wrote has everything in one prg file.

How do I compile my application to include all the different prg files?

Currently I use the buildx.bat sample (slightly modified) to build my single prg application ... works well but I'm not sure where I would add the additional prg's for my new app.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: Compile Question

Posted: Wed Sep 29, 2010 05:30 PM

Hello Jeff,

have a look at :

viewtopic.php?f=3t=19848

Best Regards
Uwe :lol:

&

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 195
Joined: Fri Jan 23, 2009 02:50 AM

Re: Compile Question

Posted: Thu Sep 30, 2010 01:22 AM

HI
On several occasions I have seen this question from people who have some experience, I am a complete novice but when I compile my application with many . prg I do the following at the end of each / / * ******* **

Include "combo5.prg"

Include "combo6.prg"

Include "vrd.prg"

Include "vrditem.prg"

Include "vrdbcode.prg"

and the compiler just say the name of the first prg

Greetings

Jairo

Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM

Re: Compile Question

Posted: Thu Sep 30, 2010 02:28 AM

Jeff, look in the dir FWH\MAKES for some samples if you want to do it manually or use a tool such as xMate

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Re: Compile Question

Posted: Thu Sep 30, 2010 12:39 PM

Thanks Uwe / Jairo.

Never even thought of trying an #include. Works perfectly :)

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM

Re: Compile Question

Posted: Thu Sep 30, 2010 04:24 PM

I think using the #include method would force it to compile all of the prg(s) no matter which one you changed.
It would be better to setup one of the make utilities so that it only need to compile the prg(s) that has changed.
I use the commercial xHarbour.com builder for this. xMate is another.

Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM

Re: Compile Question

Posted: Thu Sep 30, 2010 10:01 PM

Jeff:

Pls, use VERCE 5.0+, it can to compile and to link several prgs, several resources files (.RC or .RES) and to compress the .EXE file.

If you want a copy let me know it.

Regards

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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Re: Compile Question

Posted: Fri Oct 01, 2010 12:51 AM

Hi Armando,

I would like to try VERCE. Could you please post a link where I could download it?

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM

Re: Compile Question

Posted: Fri Oct 01, 2010 07:43 AM

Jeff,

xMate and hbIDE are also very good alternative IDE´s to handle sourcefiles.

kind regards

Stefan
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM

Re: Compile Question

Posted: Fri Oct 01, 2010 06:00 PM

Jeff:

Pls give me an email address.

Regards

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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Re: Compile Question

Posted: Fri Oct 01, 2010 06:09 PM

Hi Armando,

Please use: jeff at can-soft.net

Thanks :)

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion