1

Calling functions from main program from dlopened library function

view story
linux-howto

http://www.unix.com – Hello All, I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and really appreciate your help on this. Code: # cat main.c #include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #include <errno.h> typedef void (*FP)(void); void printme (void) {  printf ("printed me hurray!!!\n"); } int main( int argc, char** argv ) { &nbsp (HowTos)