Mail Archives: djgpp/2004/01/22/11:00:34
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
Message-ID: | <20040122155054.68721.qmail@web60902.mail.yahoo.com>
|
Date: | Thu, 22 Jan 2004 07:50:54 -0800 (PST)
|
From: | Thomas Tutone <thomas8675309 AT yahoo DOT com>
|
Subject: | Re: Error: No New Line At ...
|
To: | djgpp AT delorie DOT com
|
MIME-Version: | 1.0
|
"coldblood" <coldblood AT op DOT pl> wrote:
> I am writtting my C++ programs in MSVC and then
> I compile it under DJGPP + RHIDE, there I have such
> message:
>
> Error 1: Warning: no new line at the end of file
That's not an error, it's a warning. It's telling you
that to be correct C++, you need a newline at the end
of the file, but the compiler is still compiling the
file. In other words, if you're really lazy, you can
just ignore the warning (although I'd recommend
against it).
> Now I must go at the end of file and add one or
> more characters there. How to compile the source
> files ( and includes ) without manual adding a
> characters.
First, as I said above, you can go ahead and compile
it like you're doing, without manually adding the
characters.
Second, you posted this exact question to
comp.lang.c++.moderatated a couple days ago:
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&newwindow=1&th=9a5502d481074733&seekm=bumtsl%24jhdfj%241%40ID-220067.news.uni-berlin.de&frame=off
Even though it was off-topic, you got a bunch of
replies explaining exactly how to fix this on a
Windows or DOS-based system. Did you try those ways?
> I think that I could write a small program that
> will add
> such character, but is there any other option ?
I don't believe there is a compiler option to turn off
that warning, if that's what you're asking, but what's
wrong with the above options?
Best regards,
Tom
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
- Raw text -