X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <20040831193654.74901.qmail@web20226.mail.yahoo.com> Date: Tue, 31 Aug 2004 12:36:54 -0700 (PDT) From: pradyut bhattacharya Subject: problem with compiling To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii i have wriiten a a simple program in c++ --------------------------------------------- #include void main() { char a; cout <<"Enter a alphabet: "; cin >>a; if (a=='a') cout <<"this is a vowel"; else if (a=='e') cout <<"this is a vowel"; else if (a=='i') cout <<"this is a vowel"; else if (a=='o') cout <<"this is a vowel"; else if (a=='u') cout <<"this is a vowel"; else cout <<"this is not a vowel"; } ------------------------------------------ the error on compiling is: - ------------------------------------------------- In file included from c:/djgpp/bin/../lib/gcc/djgpp/3.41/../../../../include/cxx/3.41/backward/iostream.h:31, from vowel.cpp:1: c:/djgpp/bin/../lib/gcc/djgpp/3.41/../../../../include/cxx/3.41/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated. vowel.cpp:3: error: `main' must return `int' vowel.cpp:19:2: warning: no newline at end of file ------------------------------------------------ any help on writing the program correctly or a sample hello world example would help Thanks Pradyut http://pradyut.tk India _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush