Compile Question

Compile Question

Postby Jeff Barnes » Wed Sep 29, 2010 5: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Question

Postby ukoenig » Wed Sep 29, 2010 5:30 pm

Hello Jeff,

have a look at :

viewtopic.php?f=3&t=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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Compile Question

Postby Jairo Barbosa » Thu Sep 30, 2010 1: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
User avatar
Jairo Barbosa
 
Posts: 194
Joined: Fri Jan 23, 2009 2:50 am
Location: Cali Valle Colombia

Re: Compile Question

Postby hua » Thu Sep 30, 2010 2: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Compile Question

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Question

Postby Gale FORd » Thu Sep 30, 2010 4: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.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: Compile Question

Postby Armando » 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
User avatar
Armando
 
Posts: 3217
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Compile Question

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: Compile Question

Postby StefanHaupt » Fri Oct 01, 2010 7:43 am

Jeff,

xMate and hbIDE are also very good alternative IDE´s to handle sourcefiles.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Compile Question

Postby Armando » Fri Oct 01, 2010 6: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
User avatar
Armando
 
Posts: 3217
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Compile Question

Postby Jeff Barnes » Fri Oct 01, 2010 6:09 pm

Hi Armando,

Please use: jeff at can-soft.net


Thanks :)
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 95 guests