Hello all,
I am having problems with shared libraries.
mstrdev@scar:/OS_CHANGES/OS_CHANGES/DIMESERVER/gsoap_2_7/gsoap-2.7.9e/samples/calc_src> ldd test_shift
libtestlib.so => /home/mstrdev/MSTRPROJ/code_development/external/lib/libtestlib.so (0x00007fd4c977f000)
test_shift.cpp
---------------
libtestlib.soCode:main() { s = Function_A(1, 2, 3) printf("RETURN VALUE IS %d", s); }
------------
Code:int Function_A (int input1, int input2, int input3) { return 1; }
The problem is that "return 1" comes back as -603456842
Why?
Is this some kind of strange property with dynamic libraries?
How can one find out what is going on?
TIA



LinkBack URL
About LinkBacks



