You haven't define the type of argc and argv on main(). Remember, main() is a a function, not a particular program like Pascal. Try this: main(argc,argv) int argc; char *argv[]; { ......; } - Morris