[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dlsym() and C++
Quoting Dennis Payne (payned@rpi.edu):
> > cout << "gzdopen pointer: " << gzdopen << endl;
>
> > As far as I can tell, the dynamic linker somehow doesn't link all
> > references to the gzdopen function pointer correctly. I tried to debug
> > it with gdb. If I ask what address the gzdopen is located at (info
> > address gzdopen), I get a different pointer than the above cout tells.
>
> I don't think your code is printing out the address of gzdopen. Unless
> I'm mistaken that would print out the value of gzdopen which could be
> anything since it isn't initialized.
Can someone confirm this?
--
Magnus Norddahl
ClanSoft