Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #25765

Re: undefined reference to symbol '_end'

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: undefined reference to symbol '_end'
Date 2012-09-03 09:01 +1200
Message-ID <aahvoiF3lnU2@mid.individual.net> (permalink)
References <k20gei$v4e$1@speranza.aioe.org>

Show all headers | View raw


On 09/ 3/12 08:44 AM, Eric wrote:
> Hi
>
> I am getting the following linker error, however I do not have any _end
> function or variable in my code.
>
> Can anyone help?
>
> Thanks
>
> /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined
> reference to symbol '_end'
> /lib64/libcom_err.so.2: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status

Something somewhere calls a function called end (the leading underscore 
is added by the compiler).  You don't provide enough information for a 
decent answer, but this often happens when

a) you forget to declare a function
b) your library header doesn't match the actual library on your machine.

-- 
Ian Collins

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

undefined reference to symbol '_end' Eric <nospam@nospam.com> - 2012-09-02 20:44 +0000
  Re: undefined reference to symbol '_end' Ian Collins <ian-news@hotmail.com> - 2012-09-03 09:01 +1200
    Re: undefined reference to symbol '_end' Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-09-02 22:43 +0100
  Re: undefined reference to symbol '_end' Keith Thompson <kst-u@mib.org> - 2012-09-02 14:33 -0700
    Re: undefined reference to symbol '_end' Angel <angel+news@spamcop.net> - 2012-09-02 22:07 +0000
  Re: undefined reference to symbol '_end' Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> - 2012-09-03 00:52 +0200

csiph-web