Path: utzoo!mnetor!tmsoft!torsqnt!geac!alias!barney!rae From: rae@gpu.utcs.toronto.edu (Reid Ellis) Newsgroups: comp.sys.mac.programmer Subject: Re: problem with using C++'s inline Message-ID: Date: 27 Jan 91 08:05:49 GMT References: <11648@pt.cs.cmu.edu> Sender: Reid Ellis Reply-To: Reid Ellis Organization: Alias Research, Inc. Toronto ON Canada Lines: 28 Sounds like you're using inline A in inline B before inline A is defined. i.e., something like this: --- 1 struct Tfoo { 2 int & get(); 3 void doSomething(); 4 private: 5 int i; 6 }; 7 8 inline void Tfoo::doSomething() { get()++; } 9 inline int & Tfoo::get() { return i; } --- The trick is to change lines 2 and 3 to --- 2 inline int & get(); 3 inline void doSomething(); --- which tells the compiler that these methods are both inline, so it won't look for the symbol for the inline. Hope this helps.. Reid -- Reid Ellis 176 Brookbanks Drive, Toronto ON, M3A 2T5 Canada rae@gpu.utcs.toronto.edu || rae%alias@csri.toronto.edu CDA0610@applelink.apple.com || +1 416 446 1644