Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: "Alex Vinokur" Subject: g++ rejects 'timezone tz' Date: Mon, 20 Oct 2003 15:59:56 +0200 Lines: 48 Message-ID: X-Complaints-To: usenet AT sea DOT gmane DOT org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 =========================================== Windows 2000 Professional CYGWIN_NT-5.0 1.5.4(0.94/3/2) GNU g++ version 3.3.1 (cygming special) =========================================== ====== C++ code : File foo.cpp : BEGIN ====== #include int main() { struct timeval tv1; timeval tv2; // No compilation error struct timezone tz1; timezone tz2; // Compilation error return 0; } ====== C++ code : File foo.cpp : END ======== ====== Compilation : BEGIN ====== $ g++ foo.cpp foo.cpp: In function `int main()': foo.cpp:8: error: `timezone' undeclared (first use this function) foo.cpp:8: error: (Each undeclared identifier is reported only once for each function it appears in.) foo.cpp:8: error: parse error before `;' token ====== Compilation : END ======== Question. Why does g++ reject 'timezone tz2'? -- ===================================== Alex Vinokur mailto:alexvn AT connect DOT to http://mathforum.org/library/view/10978.html news://news.gmane.org/gmane.comp.lang.c++.perfometer ===================================== -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/