From: Newsgroups: comp.os.msdos.djgpp Subject: newbie here having trouble saying hello X-Newsreader: Newsbin Pro Lines: 10 Message-ID: Date: Thu, 19 Jun 2003 01:06:01 GMT NNTP-Posting-Host: 68.161.70.81 X-Complaints-To: abuse AT verizon DOT net X-Trace: nwrddc01.gnilink.net 1055984761 68.161.70.81 (Wed, 18 Jun 2003 21:06:01 EDT) NNTP-Posting-Date: Wed, 18 Jun 2003 21:06:01 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi. Ok. I installed DJGPP 3.2.1 and rhide15b on an xp system and I'm having trouble compiling a simple c++ "hello world" program. Heres the program. -------- #include main() { cout << "hello World!"; return 0; } --------- I am able to run hello.exe after I enter the following commands at the dos prompt. >gcc -c -Wall hello.cc >gxx -o hello.exe hello.o I get these warnings after the first command: ------------ In file included from c:/djgpp/lang/cxx/3.21/backward/iostream.h:31, from hello2.cc:1: c:/djgpp/lang/cxx/3.21/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usin g 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. hello.cc:4: warning: ISO C++ forbids declaration of `main' with no type ------- I understand the last warning about 'main', but not the first. Anyway the program runs. Now when I try it in a new project (or just the file) in rhide I get a similar message but with errors. ------- executing: ¦ gcc -g -c hello/hello2.cc -o hello2.o ------- Compiling: hello.cc ? :/djgpp/lang/cxx/3.21/backward/iostream.h(31) In file included from c:/djgpp/lang/cxx/3.21 /backward/iostream.h:31 hello/hello.cc(1) from hello/hello2.cc:1: ¦ c:/djgpp/lang/cxx/3.21/backward/backward_warning.h(32) Error: 2: warning: #warning: This file includes at least one deprecated or antiquated header....(etc) There were some errors --------- I cant get it to compile. The C version compiles and runs fine. Any help will be appreciated. I also cant get the help system in rhide to work. I could also use some links to sites for newbies on using djgpp and rhide (besides their websites...i'm kinda new and slow). Thanks.