From: beldraen AT nowhere DOT com (Beldraen) Newsgroups: comp.os.msdos.djgpp Subject: Re: Throwing a class yeilds a linker error. Message-ID: <3a4970ab.128597140@news.clmba1.mo.home.com> References: <3a4a05d9 DOT 101250781 AT news DOT clmba1 DOT mo DOT home DOT com> <92b1jr$c2u$1 AT slb7 DOT atl DOT mindspring DOT net> <92b4kf$32$1 AT slb1 DOT atl DOT mindspring DOT net> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 23 Date: Wed, 27 Dec 2000 04:33:48 GMT NNTP-Posting-Host: 24.12.193.23 X-Complaints-To: abuse AT home DOT net X-Trace: news1.elmhst1.il.home.com 977891628 24.12.193.23 (Tue, 26 Dec 2000 20:33:48 PST) NNTP-Posting-Date: Tue, 26 Dec 2000 20:33:48 PST Organization: Excite AT Home - The Leader in Broadband http://home.com/faster To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 26 Dec 2000 17:04:22 -0500, "Marp" wrote: >Err sorry. The mistake I pointed out was correct, but my explanation of why >it was wrong was itself wrong :-) > >By using parentheses when you declare object b of type B, the compiler >thinks you're providing a local prototype of a function called b that >returns a type B object, and when you throw b, it thinks you're throwing a >function pointer, but there is no concrete definition for the function (and >therefore no way to determine its pointer), and you get a "undefined >reference" error as a result. > >Marp You are a god! :o) There are many, many reasons why I hate this language and I've just added another! But, this really helped since I was at my wits end trying to understand what it was getting at. Well, another thing of trivia to remember about this langauge. Thank you very much, Bel, the mostly sane..