tmpfile returns always NULL with Windows CE

Vincent Torri vtorri@univ-evry.fr
Fri Jun 13 16:34:00 GMT 2008



> I'm compiling programs for Windows CE using CEgcc. That toolchain uses newlib 
> as libc.
>
> on my ipaq, and tmpfile returns always NULL.

actually, I think that I have found the problem. tmpfile() uses P_tmpdir 
which is defined in stdio.h. And in cegcc, it is defined with "/tmp", like 
on unix. If I create the directory "\tmp" on my windows ce device, it 
works.

I mentioned that in the cegcc ML.

Sorry for the noise :)

Vincent Torri



More information about the Newlib mailing list