X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <20040122225536.63914.qmail@web60905.mail.yahoo.com> Date: Thu, 22 Jan 2004 14:55:36 -0800 (PST) From: Thomas Tutone Subject: Re: Error: No New Line At ... To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "coldblood" wrote: > > What happens if you compile from the command line: > > > > gpp -W -Wall foo.cpp -o foo.exe > > > > (If you have multiple files in the project, you'll > > have to specify them all in the same line: > > > > gpp -W -Wall foo1.cpp foo2.cpp foo3.cpp -o foo.exe > > > > Do you get an executable then? > > No, I have try this just a minute ago and it fails > to build > the executable file :( the error message(s) are > just the same. OK, now I'm a little confused. First, please type "gcc -v" and tell us the info provided. Then copy and paste the following program and save it as hello.cpp, noting that there is no newline at the end: #include int main() { std::cout << "Hello, World."; } Then compile it as follows: gpp -Wall -W hello.cpp -o hello.exe Copy and paste into your return message everything - please don't say "it's the same error message." Here's what happens when I do all of the above: C:\djgpp\mystuff>type hello.cpp #include int main() { std::cout << "Hello, World."; } C:\djgpp\mystuff>gcc -v Reading specs from c:/djgpp/lib/gcc- lib/djgpp/3.32/specs Configured with: /devel/gnu/gcc/3.3/gnu/gcc- 3.32/configure i586-pc-msdosdjgpp -- prefix=/dev/env/DJDIR --disable-nls Thread model: single gcc version 3.3.2 C:\djgpp\mystuff>gpp -Wall -W hello.cpp -o hello.exe hello.cpp:5:2: warning: no newline at end of file C:\djgpp\mystuff>hello Hello, World. C:\djgpp\mystuff> As you can see, on my system (which has gcc 3.3.2), it gives me a warning, but still compiles the file, which executes just fine. What happens when you do EXACTLY the above (and please provide a verbatim transcript, like I did)? Best regards, Tom __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/