This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: undefined reference in g++ 2.95.2
- To: "Nuesser, Wilhelm" <wilhelm dot nuesser at sap dot com>
- Subject: Re: undefined reference in g++ 2.95.2
- From: Kevin Handy <kth at srv dot net>
- Date: Wed, 16 Aug 2000 10:43:39 -0600
- CC: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Organization: Software Solutions, Inc
- References: <816D93CCC927D31188570008C75D1DE1011A0BF6@dbwdfx1a.wdf.sap-ag.de>
It doesn't look like a linker error to me, because the
error refers to the cpp file.
It looks more like you missed including a header that
defines JS_GetPrivate, or it never gets defined as an
external properly.
"Nuesser, Wilhelm" wrote:
>
> Hi there,
>
> when linking a quiet huge exec natively with
> g++ 2.95.2 the compiler ends after a while
> with
> ictxxjs.cpp:174: undefined reference to `JS_GetPrivate'
> and many similar messages.
> Sound quiet clear. But nm-ing the relared - and linked ! - library
> gives
>
> nm -u jslib.o
> ... T JS_GetPrivate
> U JS_GetPrivate
>
> So the symbol IS defined.
It is defined in jslib.cpp, but not in ictxxjs.cpp
> Any ideas? Are there any contraints in exec size, branch length ...?
> Can I increase linker internals ....?