Mail Archives: djgpp/2004/01/22/12:01:16
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 -