Mail Archives: djgpp/2000/06/23/06:16:12
> From: Laurence Withers <lwithers AT lwithers DOT demon DOT co DOT uk>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 22 Jun 2000 22:53:02 +0100
>
> Using Windows 98 (not second edition), the command line was:
> gxx -W -Wall -o test.exe test.cpp
>
> Using djdev203.zip, and gcc -v reports
> Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.952/specs
> gcc version 2.95.2 19991024 (release)
I just tested this in the exact same environment (except that my
Windows 98 is a Hebrew-enabled version), and I still cannot reproduce
the problem: I get "return value 0; errno 0".
(Previously, I tested this on Windows 95 with GCC 2.7.2.1, but the
results were identical to what I get now.)
So either you posted a program that is different from what you
actually run, or there's some factor specific to your system that is
at work here.
Note that there's nothing wrong with errno being non-zero, since you
didn't initialize it to zero before calling `findfirst'. But the
status returned by `findfirst' should indeed be zero in the case you
described.
- Raw text -