delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/24/20:49:03

From: cgf AT cygnus DOT com (Christopher G. Faylor)
Subject: Re: (none)
24 Nov 1998 20:49:03 GMT :
Message-ID: <73f63v$eem$1@cronkite.cygnus.com>
References: <199811232132 DOT WAA00238 DOT cygnus DOT gnu-win32 AT dedalus DOT com>
X-Newsreader: trn 4.0-test63 (15 March 1998)

The way to debug problems like this on either Windows or UNIX
is to run the program under a debugger and try to figure out
where it is dying and why.

In article <199811232132 DOT WAA00238 DOT cygnus DOT gnu-win32 AT dedalus DOT com>,
Ugo Matrangolo <matra AT dedalus DOT com> wrote:
>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 AT cygnus DOT com" with one line of text: "help".


-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

- Raw text -


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