[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dlsym() and C++
> Can someone confirm this?
-- test.C --
#include <iostream.h>
int main()
{
 void *zz = "j";
 cout << "zz: " << zz << " (" << (void *)&zz << ")" << endl;
 zz = NULL;
 cout << "zz: " << zz << " (" << (void *)&zz << ")" << endl;
 return 0;
}
-- output --
zz: 0x8048e48 (0xbffff8dc)
zz: (nil) (0xbffff8dc)
Looks like I was right.  Although that doesn't explain why your code was
crashing.
Dennis Payne
payned@rpi.edu