Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!mintaka!ogicse!milton!max!8324155 From: 8324155@max.u.washington.edu Newsgroups: comp.lang.c++ Subject: Can you prototype main() ????? Message-ID: <14227.26dc5b2f@max.u.washington.edu> Date: 30 Aug 90 07:17:50 GMT Organization: University of Washington, Seattle WA Lines: 14 I'm hoping someone can help me with this (hopefully) easy question about C++, and specifically Turbo C++. I have been learning C++ and using the book "C++ Techniques and Applications" by Scott Robert Ladd, and when I tried to compile one of his example programs with Turbo C++ I got a "cannot overload 'main'" error message. It seems the compiler choked on the author prototyping main (with the line: int main(); Is this a problem with Turbo C++, or is it not allowed in C++ and the compiler that the author used just accepted it ? It works fine in Turbo if I remove the prototype. Thanks ahead of time, Mark Frey