Re: Newbie making a dumb mistake but can you help?
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Wed, 26 Apr 2006 17:06:39 -0700
JustMe2 <do_mail@xxxxxxx> wrote:
if i put both in the same file it will compile link and run. I guess I
don't understand what the .mod file is for. If I have to link the obj
file as well then why would I want to use the .mod files?
You don't have a choice, actually. The .mod file is part of how modules
work. In particular, the .mod file is used at compile time (*NOT* link
time) to communicate information from the module to whatever USEs the
module. In essence, the USE statement tells the compiler to read the
..mod file to get information about the module. WIthout it, the compiler
would have no idea what is in the module and would not be able to use it
correctly.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Newbie making a dumb mistake but can you help?
- From: JustMe2
- Re: Newbie making a dumb mistake but can you help?
- References:
- Newbie making a dumb mistake but can you help?
- From: JustMe2
- Re: Newbie making a dumb mistake but can you help?
- From: Colin Watters
- Re: Newbie making a dumb mistake but can you help?
- From: JustMe2
- Newbie making a dumb mistake but can you help?
- Prev by Date: Re: New style DO syntax?
- Next by Date: Re: Converting fixed-to-free format
- Previous by thread: Re: Newbie making a dumb mistake but can you help?
- Next by thread: Re: Newbie making a dumb mistake but can you help?
- Index(es):
Relevant Pages
|
|