This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: undefined reference in g++ 2.95.2


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 ....?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]