BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
Jack
Guest





PostPosted: Fri Apr 13, 2007 3:49 am    Post subject: Compile Reply with quote



Hello,

I have Borland Delphi Pro 2007 for Window 32. Please help me on following
question (I am learning the Delphi):
I have existing program which develop using Delphi 2007. I would to compile
the program using Delphi 2007. I have two files which I require to compile:
Components.dpk and fileA.dpr. I open the Components.dpk, then I click on:
Build, Compile and Install.

Question

A: Do I need to compile Components.dpk before fileA.dpr?

B- Do I have correct steps for compiling Components.dpk: Build, Compile and
Install. Do I need to added to lib path (how)?

C- After I compile Components.dpk, do I need to close a file "Close All",
before open the fileA.dpr?

D- I close the Components.dpk and open fileA.dpr. When I compile, the
program does not recognize the variable which define under Components.dpk.
Do I need to open both files the same time? Please provide the step.

Please let me know.

Thank you for your help
Jack
Back to top
Rob Kennedy
Guest





PostPosted: Fri Apr 13, 2007 5:15 am    Post subject: Re: Compile Reply with quote



Jack wrote:
Quote:
I have Borland Delphi Pro 2007 for Window 32. Please help me on following
question (I am learning the Delphi):
I have existing program which develop using Delphi 2007. I would to compile
the program using Delphi 2007. I have two files which I require to compile:
Components.dpk and fileA.dpr. I open the Components.dpk, then I click on:
Build, Compile and Install.

Question

A: Do I need to compile Components.dpk before fileA.dpr?

Probably not. The compiler will probably find the necessary files from
the package anyway.

Quote:
B- Do I have correct steps for compiling Components.dpk: Build, Compile and
Install. Do I need to added to lib path (how)?

You shouldn't need to add it to the library path. Whatever you have is
probably already available to the compiler. If the package and the
program are both in the same directory, then they're almost assuredly
available without adding anything extra to the path.

Quote:
C- After I compile Components.dpk, do I need to close a file "Close All",
before open the fileA.dpr?

No. Opening another project already closes the other project.

Quote:
D- I close the Components.dpk and open fileA.dpr. When I compile, the
program does not recognize the variable which define under Components.dpk.
Do I need to open both files the same time? Please provide the step.

If the compiler doesn't recognize a symbol, then that's because you have
not included the proper units, or the units you have do not define that
symbol. It has absolutely nothing to do with which files you have open
at the time.

--
Rob
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.