Originally posted by: vinodh_nair
Hi,
I have created two shared libraries (written in C) in AIX53. One of these shared libraries named util.so has defined a number of general utility functions (like alloc_memory() ). alloc_memory() creates and initializes memory and return a pointer to the called function.
The other shared library makes a call to alloc_memory() defined in util.so. But when the function returns, the application crashes saying "illegal instruction". The crash occurs when the "return" statement is executed in alloc_memory().
What could be the cause of the above error? Is it because I am returnign a pointer to memory allocated in one shared library to another shared library? How can I solve this issue? Is there any equivalent of '__delspec dllexport" in AIX? Can I solve this by usign any linker/compile options?
#AIX-Forum