Bug? on mkstemp

Corinna Vinschen vinschen@redhat.com
Wed Dec 6 02:59:00 GMT 2000


"Jong B. Lee" wrote:
> 
> I don't know why the parse error occurs when compile the following file.
> 
>    gcc -c conf.c  is working well.
> 
> But,
> 
>    c++ -c conf.C fails :
> 
>    conf.C  :  parse error before 'templete'
> 
> Is this a BUG ?

Nope. It's a feature. "template" is a reserved word in C++.

> By the way, I couldn't find where mkstemp is declared.
> Could not find it in <stdio.h>, nor in <stdlib.h>

You're right. `mktemp' and `mkstemp' are exported by cygwin1.dll
but they are not declared in stdlib.h.

Thanks for the hint,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.
mailto:vinschen@redhat.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list