Mail Archives: djgpp/2000/10/09/11:49:32
> From: jbfraleigh AT hotmail DOT com
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 09 Oct 2000 13:06:59 GMT
>
> FILE *fp;
>
> fp = fopen("TEMP.TMP", "r");
> if (!fp)
> fprintf("Error.");
>
> With TC, it works fine. With DJGPP it prints "Error."
It is not really relevant to tell what other compilers do, because it
might as well be the bug in the other compiler.
People have been asking you all kinds of questions in this thread, but
for some reason you preferred not to answer them. Could you please go
back and answer those questions?
IIRC, one of the questions was about possible long file-name support
in the version of FreeDOS you are using--if there is such a support,
please try to turn it off and see if that works.
Another question was whether you indeed have the file TEMP.TMP in the
same directory where this program runs. (When fopen is called with
"r", it fails if the file does not exist.)
There were other questions, as far as I remember. Please reread the
thread and try to answer them. It is very hard to help you if
questions are ignored.
Failing all that, please post a complete short test program which
exhibits the problem on your machine, so others could try to compile
and run it on theirs.
- Raw text -