rebasing new packages?!
Jason Tishler
jason@tishler.net
Fri May 3 10:27:00 GMT 2002
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
-------------- next part --------------
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;
More information about the Cygwin-apps
mailing list