[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More information about inline function "used but never defined" erro
From: |
Paul Pluzhnikov |
Subject: |
Re: More information about inline function "used but never defined" error? |
Date: |
16 Feb 2005 07:24:26 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes:
> Arguably this is not very elegant, but it works.
Here is a marginaly more "elegant" way:
Compile units-04.cfail.cpp with:
$ /usr/local/gcc-3.2/bin/g++ -S -gstabs units-04.cfail.cpp
Examine resulting units-04.cfail.s:
egrep 'stabn|call.*_ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv' units-04.cfail.s |
grep -B1 call
On my machine this results in:
.stabn 68,0,13,.LM4-main
call _ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv
call _ZNK5UnitsILi0ELi0ELi0ELi1ELi0EEcvdEv
This tells you that the 2 calls to the offending 'operator double()'
come from line 13 in the source.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.