mikem@uhccux.uhcc.hawaii.edu (Mike Morton) (12/10/88)
I recently posted several questions about LightspeedC. Rich Siegel at Think mailed me answers which seem definitive. Here's excerpts from what he sent. > 1) I want '#include "protoFoo.h"' to work in several projects. Is > the only way to do this to put my folder of common functions into > the Think C folder? No. If you have a set of related projects, then just put your three projects in the same folder, and put your prototype header in a folder which is a subdirectory of the folder that contains your projects. > 2) What are the advantages and disadvantages of the different ways to > store a common library? Project? Source? Library? Library pros: Loads faste , slightly less space on disk Library cons: If you change the source, you need to rebuild the librar, which is an extra step. Doesn't smart-link. Project pros: Smart-links unused files, if project consists of multiple source files. Easy to maintain.; just build, using Bring Up To Date command, and on any project that uses the library, choose "Use Disk". Project cons: None worth mentioning. Source pros: Easiest to maintain; simply change it on the fly. Source cons: Has to be recompiled frequently if you do a Remove Objects or something of that ilk. Is the slowes way to load of these three options. > 3) I want these prototypes checked. But if I turn on "Require function > prototypes" the compiler will insist on prototypes for everything. It > seems there's no "Enforce function prototypes" option, which enforces > them only when they're declared. It's implicit; if a prototype is declared, it's enforced. > 5) Who is Carol E. McGarry? The user's manual indexes her as being on page > 36. Apparently the signature "CEM8" *does* stand for something :-) That's proprietary information. ;-) (end of excerpts from Rich) I've omitted the part about my not being able to find MaxApplZone -- I can't even reproduce the problem now. -- Mike Morton // P.O. Box 11378, Honolulu, HI 96828, (808) 676-6966 HST Internet: msm@ceta.ics.hawaii.edu (anagrams): Mr. Machine Tool; Ethical Mormon; Chosen Immortal; etc.