X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <001901c929f3$030ee7b0$4001a8c0@mycomputer> <042101c929fb$1a61d8c0$9601a8c0@CAM.ARTIMI.COM> <011201c92a05$531a5ed0$4001a8c0@mycomputer> <48EDF178.1020705@byu.net> <48EDF3DF.9090000@byu.net> <003401c92a1d$44ad5c40$4001a8c0@mycomputer>
Subject: RE: __CYGWIN_USE_BIG_TYPES__
Date: Thu, 9 Oct 2008 16:15:51 +0100
Message-ID: <046201c92a21$eac47240$9601a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <003401c92a1d$44ad5c40$4001a8c0@mycomputer>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

John Emmas wrote on 09 October 2008 15:43:

> Create an empty CPP source file and simply add the following line:-
> 
> #include <fstream>
> 
> Now try to compile the file.  In my case I get around 50 errors, the first
> of which is:-
> 
> \usr\include\pthread.h:  77: error: `pthread_attr_t' was not declared in
> this scope
> 
> Now change the file's extension to ".c" and re-compile.  This gives
> another host of errors, but different errors from the previous ones..!

  Use "gcc" to compile C files and "g++" to compile C++ files.

> If you can't reproduce this, then the most likely cause is that 

... you forgot to show us the compiler command-line you're using.

/tmp $ cat f.cpp

#include <fstream>

int main (int argc, const char **argv)
{
  return 0;
}
/tmp $ g++ f.cpp -o f
/tmp $ echo $?
0
/tmp $

> BTW, am I right in thinking that Cygwin's gcc is still at revision 3.4.4? 

  We have a separate set of gcc-4 packages.  See
http://cygwin.com/ml/cygwin-announce/2008-09/msg00005.html

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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/

