[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dlsym() and C++



-- test.C --
#include <iostream.h>

int main()
{
 void * g = NULL;
 cout << "g: " << &g << " (" << (void *)&g <<")" <<endl;
 return 0;
}

-- output --
g: 1 (0x2ff225d8)

I noticed when I did the other test that printing &g didn't give
the expected output so I cast it to a void*.  This could be why 
you're getting different addresses.  (This is probably compiler
dependent so it might not be the problem.)  Granted that still
doesn't give any clue about the crashing.

Dennis Payne
payned@rpi.edu