Shared Libraries in QNX 4.23

Hello,
I have a problem in creating shared libaries(.so) in QNX (Ver 4.23)host pc.
When I create a ‘c’ file with following snippet

#include<stdio.h>
void display()
{
printf(“Shared Libaray”);

}
I make an object file oot of this. When i try to convert to .so it doesn’t create. But when I have a “main” method in the same file it creates a .so file.

Please let me know is it do with the version of QNX.

Regards
snathan