This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug? on mkstemp


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]