delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/22/12:01:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "coldblood" <coldblood AT op DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Error: No New Line At ...
Date: Thu, 22 Jan 2004 17:43:59 +0100
Organization: Portal Gazeta.pl -> http://www.gazeta.pl
Lines: 63
Message-ID: <buouqr$m5s$1@inews.gazeta.pl>
References: <20040122155054 DOT 68721 DOT qmail AT web60902 DOT mail DOT yahoo DOT com>
NNTP-Posting-Host: 213.17.252.66
X-Trace: inews.gazeta.pl 1074790044 22716 213.17.252.66 (22 Jan 2004 16:47:24 GMT)
X-Complaints-To: usenet AT agora DOT pl
NNTP-Posting-Date: Thu, 22 Jan 2004 16:47:24 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-User: coldblood
X-MSMail-Priority: Normal
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Uzytkownik "Thomas Tutone" <thomas8675309 AT yahoo DOT com> napisal w wiadomosci
news:20040122155054 DOT 68721 DOT qmail AT web60902 DOT mail DOT yahoo DOT com...
> "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).

You say that it is only a warring so why then I cannot
run the program ? There is no difference when I use
ALT+F9 ( compile ) or CTRL+F9 (  run ) I always
get the same message at the end of message box:

There were some errors

not warnings as you say, when there are no errors
the RHIDE always told about it displying the proper
message:

compiling:     foo.cpp
no errors

> > 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=9a5502
d481074733&seekm=bumtsl%24jhdfj%241%40ID-220067.news.uni-berlin.de&frame=off

Yes thats true, I have try to write my own program to
automaticaly add one character - it does not work for now :(

> 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 have only try one solution as for now.

--
Best regards
Michal 'coldblood' Przybylowicz
Enter the depths of eternal darkness...
..:: www.crypticlight.webpark.pl ::..


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019