This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why doesn't gcc 4.6 show line numbers in error messages?
- From: Florian Weimer <fweimer at redhat dot com>
- To: David Aldrich <David dot Aldrich at EMEA dot NEC dot COM>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 04 Nov 2013 15:24:53 +0100
- Subject: Re: Why doesn't gcc 4.6 show line numbers in error messages?
- Authentication-results: sourceware.org; auth=none
- References: <41302A7145AC054FA7A96CFD03835A0A0B7A0AB0 at EX10MBX02 dot EU dot NEC dot COM>
On 11/04/2013 02:56 PM, David Aldrich wrote:
I hope this isn't a silly question. I am running gcc 4.6.3 on Ubuntu 12. When I compile my source code I get compiler errors in a form that I don't expect. For example:
EVD.cpp:(.text+0x1c6e): undefined reference to `Matrix<std::complex<double> >::Matrix()'
Why is the location of the error shown relative to .text instead of as a simple line number?
Such questions should go to the gcc-help mailing list.
This is a linker error message. The linker can only report line numbers
in some cases if there is debugging information.
--
Florian Weimer / Red Hat Product Security Team