EW(> Mike, you wrote to Sunir Shah :
MP> I use it with Borland C++ 4.0 for DOS and Windoze and GNU
MP> C++ for Linux and neither compiler complains about it.
EW(> I tried it on GNU c++ and it did complain (using -Wall, of course)
EW(> warning: return type for `main' changed to integer type.
EW(> Strangely enough it didn't complain that I didn't return a value, not
EW(> even when I changed it to int main().
I normally just type g++ file.cpp -o file. I guess I should start
using -Wall to really check for portability. I'll check to see how
it's done with Borland C++, too.
Mike Patten
... You can tell a real programmer by the keyboard dents in his forehead
---
Blue Wave/386 v2.30 [NR]
--- WWIVToss v.1.38b Registered
---------------
* Origin: Faith keeps collapsin' on my head... (1:271/150.0)
|