From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kayvan A. Sylvan" To: David Snopek Cc: "Martin v. Loewis" , gcc-help@gcc.gnu.org Subject: Re: Shared Libraries Date: Sat, 08 Jul 2000 16:26:00 -0000 Message-id: <20000708162553.A13337@satyr.sylvan.com> References: <39676DEB.985DF973@execpc.com> <200007082157.XAA00895@loewis.home.cs.tu-berlin.de> <3967B5C2.618B3AA1@execpc.com> X-SW-Source: 2000-07/msg00046.html On Sat, Jul 08, 2000 at 06:14:10PM -0500, David Snopek wrote: > I found the solution to the problem (or at least something that makes it > go away) although I do not really understand it. In all of my files I > had "#pragma interface" in the header and "#pragma implementation" in > the implementation. I had read in the man pages for g++ that if you > don't give "#pragma implementation" a header name then it will use the > files name except with the *.h extension, so I didn't supply one because > all of my files are named in this fashion. In the midst of trying > completely random things, I put the header names in. And now it works > perfectly. I don;t know why, but for now I do not care. Thanks for > trying to help!! I would like to know why this happens too, since I've been bitten by this behavior as well. Note also: The problem will go away with use of ``-O'' optimization. If you use gcc's ``-g'' flag by itself, though, the linking problem shows up. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory