Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <002901c05f4b$90efe280$8b0c4ea8@kepri.re.kr> From: "Jong B. Lee" To: Subject: Bug? on mkstemp Date: Wed, 6 Dec 2000 15:12:51 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="ks_c_5601-1987" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id BAA31564 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 ? By the way, I couldn't find where mkstemp is declared. Could not find it in , nor in -------------------- conf.c -------------------- #include #include #ifdef __cplusplus extern "C" #endif int mkstemp(char * template); int main() { char path[MAXPATHLEN]; int fd; sprintf(path,"/tmp/test.XXXXXX"); fd = mkstemp(path); return 0; } ----------------------