Well, if you think verification that your code will compile
unimportant, I guess not. OTOH, compiling is really no big
deal and only takes a second or two. (Actually, I force a
compile after every code change.) Remember that a compile
error can prevent your program from running.
My release preparations start with a Compile and a Compact.
Then, I decompile the program and Compact again. After
saving a copy of the decompiled program, I then Compile
again.
If all that checks out, I then take the saved, decompiled
file to the client's site. Since each client enforces the
same system/software configuration on all of his machines (I
have not worked with one that allows willy nilly software
installations), I can then use the client's system to
compile a final version for that client. Note that this is
unnecessary if you are in a position to force all of your
clients to use exactly the same system that you use. I can
not even approach that sort of control over a disparate
client base, but I have heard of some developers that do.
--
Marsh
MVP [MS Access]
So,if i compile on my own machine,what happens to a probable version
conflict of refferences?Does my compilation have any profit on this matter?
Mota wrote:
Do i have to necessarily compile my program before distributing it?What
benefit it has for my program?
"Marshall Barton" wrote
First thing compiling does is check to make sure your code
can compile successfully. If it can't, your program will
not run.
The next thing compiling accomplishes is to compile the code
(DUH) so the users don't have to compile it when they run
your program. Other than being a time consuming process,
having the users compile it will also cause your program to
bloat to one degree or another. When you compile it prior
to distributing it, you can run Compact to reduce the size
of the distribution file.
OTOH, if your users may have different versions of some
libraries that your program references, then performing the
compilation on their machine will probably(?) resolve any
version conflicts that may exist. If possible, you should
do this, along with a Compact, as part of the instalation
process.