I am trying to design a simple user exit.But while creating the shared object on AIX it says:
ld: 0711-317 ERROR: Undefined symbol: .ERCALLBACK
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
I have already defined the ERCALLBACK in my userexit like below:
void ERCALLBACK(ercallback_function_codes function_code,void *buf, short *presult_code);
On AIX you'll have to create a shared library, and export the symbol(s) so that the function can be found in the shared library... For example (and only an example -- note the "..." where you might have your own options),
xlc++_r -G -b64 -q64 ... -qarch=auto -qtune=auto -qhot -O3 ... -bexpall -bM:UR -bnoentry -bM:SRE -o libuserexit.so -lm -ldl -lpthread ... foo.o bar.o ...