g++ 3.3 version on Linux 64-bit: passing base class pointer corrupts variable data
Hello,
My project contains a 1) shared library 2)executable containing a static library
The shared library has an interface used by the static library and takes as input a pointer to a base class (have used a structure not a class).
In the static library I am creating the derived structure object using "new" and then assigning it to base class pointer and passing it to the interface function.
However, when I print out the values in the shared library they are all 0
Can anyone tell me what might be the issue ?