This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Segmentation faults with g++ 4.0

At 06:10 PM 12/12/2004, you wrote:
>I installed CYGWIN_NT-5.1 a few days ago and then built g++ from the latest 
>CVS. Simple programs like the one below will compile and link, but then get 
>segmentation faults in pthread_specific on execution:
>#include <locale>
>#include <iostream>
>static const std::locale l;
>//static std::ostream&     o = std::cerr;
>int main(const int,
>         const char * const * const)
>    return 0;
>Is this a known bug? The c++ that comes with Cygwin is way too old to compile 
>my code; I need at least 3.4.

Rerun 'setup.exe', choose the "Exp" radio button above the package list, 
and then click the "View" button until it shows "Partial".  This will 
give you a list of the packages that you have installed that have 
"Experimental" versions available.  "g++" and friends should be in that
list with a "3.4.1-1" version option.  Cycle those packages you don't want
to change to "Keep".  Leave "g++" and friend as is and click "Next" to 

This is likely much easier than building your own version and tracking 
down bugs in your configuration.


Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     

Unsubscribe info:
Problem reports:

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