Hi Fellows! Thanks for help. In mean time I am able to get a clue from MINGW32 that how to work around for making a dll to work for JNI (Java native interface) so I think so I don't need to work with vc now. I am very thankful to you all for suggesting me your solution. Regards Usman