www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/05/03/13:27:13

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Fri, 03 May 2002 13:34:04 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: rebasing new packages?!
In-reply-to:
<FC169E059D1A0442A04C40F86D9BA7600C5FA9 AT itdomain003 DOT itdomain DOT net DOT au>
To: cygwin-apps AT cygwin DOT com
Mail-followup-to: cygwin-apps AT cygwin DOT com
Message-id: <20020503173404.GF2072@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.3.24i
References: <FC169E059D1A0442A04C40F86D9BA7600C5FA9 AT itdomain003 DOT itdomain DOT net DOT au>

--Boundary_(ID_Hq8NAIXV0Z/WtS5FgvL1aw)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline

Rob,

On Fri, May 03, 2002 at 11:55:31PM +1000, Robert Collins wrote:
> b) is an alternative approach to what I've already documented here. So
> it covers libstc++ aka libg++-3. I don't know how much of the STL that
> includes (see my earlier email).
> 
> > > http://sources.redhat.com/cygwin-apps/setup.html).

I followed the instructions in the above URL and successfully built
setup.exe.  Then I added some STL test code to main.cc as indicated by
the attached "patch."  Due to warnings generated by the STL headers,
I had to remove the -Werror option in order to build.  Except for that
change, setup.exe built without any problems and the STL test code ran
as expected:

    2002/05/03 13:10:46 Starting cygwin install, version 2.219
    2002/05/03 13:10:46 s = bye
    2002/05/03 13:10:46 s = hello
    ...

Can we remove the "-Werror" option and start using STL in setup.exe?

Thanks,
Jason

--Boundary_(ID_Hq8NAIXV0Z/WtS5FgvL1aw)
Content-type: text/plain; charset=us-ascii; NAME=main.cc.diff
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=main.cc.diff

Index: main.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/main.cc,v
retrieving revision 2.17
diff -u -p -r2.17 main.cc
--- main.cc	29 Apr 2002 11:07:40 -0000	2.17
+++ main.cc	3 May 2002 17:20:32 -0000
@@ -142,6 +142,9 @@ out:
 // Other threads talk to this page, so we need to have it externable.
 ThreeBarProgressPage Progress;
 
+#include <set>
+#include <string>
+
 #ifndef __CYGWIN__
 int WINAPI
 WinMain (HINSTANCE h,
@@ -159,6 +162,13 @@ main (int argc, char **argv)
   next_dialog = IDD_SPLASH;
 
   log (LOG_PLAIN, String ("Starting cygwin install, version ") + version);
+
+  set<string> s;
+  s.insert("hello");
+  s.insert("bye");
+
+  for (set<string>::iterator i = s.begin(); i != s.end(); i++)
+	  log (LOG_PLAIN, String ("s = ") + (*i).c_str());
 
   SplashPage Splash;
   SourcePage Source;

--Boundary_(ID_Hq8NAIXV0Z/WtS5FgvL1aw)--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019