This is the mail archive of the
mailing list for the Cygwin project.
[mingw32] Help with STL
- To: gnu-win32 at cygnus dot com
- Subject: [mingw32] Help with STL
- From: vennerbc at mindspring dot com (Bradley Venner)
- Date: Thu, 26 Feb 1998 18:02:55 GMT
- Organization: Medical University of South Carolina
- Reply-To: vennerbc at mindspring dot com
I would like to use the Template Numerical Toolkit from NIST as part
of a project. However, I have had trouble with the STL library with
both the gcc2.8.0 and egcs distributions. For example, using some
example code from an STL tutorial (below), I get the following errors
using the egcs compiler
In file included from F:\\egcs\\include\\g++/vector.h:32,
F:\\egcs\\include\\g++/stl_vector.h:40: parse error before `>'
F:\\egcs\\include\\g++/stl_vector.h:44: syntax error before `*'
F:\\egcs\\include\\g++/stl_vector.h:45: syntax error before `*'
F:\\egcs\\include\\g++/stl_vector.h:46: syntax error before `*'
F:\\egcs\\include\\g++/stl_vector.h:47: syntax error before `*'
F:\\egcs\\include\\g++/stl_vector.h:48: syntax error before `&'
and then an illegal operation notice from windows.
The compiler seems to work on non-template code (i.e. egcs compiled
Lapack) and other non-template C++ code (i.e. the FADBAD automatic
I would eventually like to link with S-plus or Matlab, for which I
only can afford Windows licences, so I would like to stay in the
Windows environment if possible. Any help or advice would be
main (int argc, char *argv)
int n = atoi (argv); // argument checking removed for clarity
for (int i = 0; i < n; i++) // append integers 0 to n-1 to v
random_shuffle (v.begin(), v.end()); // shuffle
copy (v.begin(), v.end(), ostream_iterator<int> (cout, "\n"));
Department of Biometry and Epidemiology
Medical University of South Carolina
For help on using this list (especially unsubscribing), send a message to
"email@example.com" with one line of text: "help".