This is the mail archive of the cygwin@sourceware.cygnus.com 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]

No Subject


Hi!.

I'm a new user of cyg-win32 . Today i tried to recompile some old 
c++ code under cyg-win32 B20 under win98 . This program causes a 
segment violation :

----- cyg-bug.cc -----
#include <iostream.h>
#include <vector>

int main(void)
{
   int n;

   cout << "Gimme a dimension :";
   cin >> n;

   vector<vector<int> > mymatrix(n);

   for (int i = 0;i < n;i++)
      for (int j = 0;j < n;j++)
         mymatrix[i][j] = 0;

   return 0;
}

---------------------

This program works fine under FreeBSD. 

Can anyone tell me if it is a bug or my fault ?  

bye .


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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