gnu.gcc.help
[Top] [All Lists]

Re: linking libraries & glibc error

Subject: Re: linking libraries & glibc error
From: Andrew Haley
Date: Sun, 25 May 2008 12:04:43 -0500
Newsgroups: gnu.gcc.help

Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxx> wrote:
> Christian Pontesegger <schnitten@xxxxxx> writes:

> > but if I add an instance of B to the application
> >
> >       B myB;
> >       void mHandle = dlopen("libB.so", RTLD_NOW);
> >       ...
> >       dlclose(mHandle);
> >
> > I get a crash using gcc-4.1.2 on linux:

> How could your application "use B" without linking to libB ?
> Your description of the problem is likely incomplete.

I agree.  It certainly makes no sense to dopen libB if the application
is already linked against libB.

> If you could produce a small *complete* test case that replicates
> the problem, we'll likely be able to tell you exactly what's wrong.

Right.

Andrew.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy