On Mon, 9 Oct 2000, John Levon wrote:

> On Mon, 9 Oct 2000, Baruch Even wrote:
> 
> > I've tried with 2.95.2 (unpatched) on my machine and had troubles too. I'm
> > also having troubles with egcs 1.1.2 for what it matters (It cant find
> > GroupCache::find on linking, I'm forced to make the function un-inlined).
> > 
> 
> Same problem for me, I need
> http://www.movement.uklinux.net/patches/lyx/filedlg.C.diff
> 
> all very odd
> 
> john
> 
> -- 
> "Take the ideas you find useful. Try not to get hung up on the labels."
>       - Jonathan S. Shapiro
> 
> 

Dear Baruch,

Are you compiling with -g and without -O ?
I compiled this way and had the exact same problem, which I think is due
to this combination of options stopping g++ from expanding functions
inline, but in this case from also compiling the function out-of-line for
some unknown reason.

Therefore an alternative solution to the problem is compiling filedlg.C
with -O (i.e. take the specific g++ line from the make and redo it with an
additional -O). Then linking should work out fine.

HTH,
Lior.

Reply via email to