Try instead of "return 0", "exit(0)". If this works, then there is a library problem.
main() is not usually the actual entry point for a 'C' program, just a routine called
by the initialization code. The return from main() should be sent to exit(), and
maybe it is not.

Try instead of "return 0", "exit(0)". If thisworks, then there is a library problem.main() is not usually the actual entry point for a 'C' program, just aroutine calledby the initialization code. The return from main() should be sent toexit(), andmaybe it is not.

I was missing watcom c++.it is required to make gcc works.thanks for pointing this.