Read the AIX online documentation about creating shared libraries, including -berok and -G options to the AIX linker (accessed through GCC using -Wl,-berok and -Wl,-G). David