From: "p.a.c.tavares" <cabr85@ccsun.strath.ac.uk>
To: gnu-win32@cygnus.com (Cygwin List)
Subject: bug report
Date: Mon, 17 Feb 1997 08:27:00 -0000 [thread overview]
Message-ID: <199702171624.QAA10445@avon.cc.strath.ac.uk> (raw)
The following code works fine in a HP system (using gcc 2.7.2), calling
the correct "Column" contructor with the right arguments
int Table::init(int line,int col,double fill_value)
{
n_lines = line;
n_cols = col;
if (pt) delete [] pt;
pt = new Column[col](line,fill_value);
if (pt == NULL) return 1;
return 0;
}
However under cygwin, in spite of compiling fine it calls (according
to gdb) the correct column constructor "Column::Column(int,double) but all
the arguments show up as 0 (including the int which results in a lenght 0
column being created). The form of this contructor is I believe
irrelevant but here it is anyway. A check of the value of 'size' in the
first line of the function tells that size=0 (when it was called with a
positive number by Table::init(int,double),
Column::Column(int size,double fill_value)
{
len = size;
val = new float [len];
while (size > 0) val[--size] = fill_value;
}
I am using gcc in a win95 system, 486 with 16Mb. the options of the
compiler are -gstabs+ and a -I entry. The libraries are, -lstdc++ -lg++
-lm -lpact (the last being my own library)
----------------------------------------------------------------------------
Pedro A.C. Tavares <p.tavares@strath.ac.uk>
Superconducting Devices Group Tel: +44-141-548 3151
Dept. of Physics & Applied Physics Fax: +44-141-552 7143
University of Strathclyde For PGP public key: "finger
Glasgow, UK pedro_t@zebedee.phys.strath.ac.uk"
----------------------------------------------------------------------------
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
next reply other threads:[~1997-02-17 8:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-17 8:27 p.a.c.tavares [this message]
[not found] <CAJVfQ_gj3N5+j+NpJytcYqMnMVMj-_p=EuLKsZ7BwnYWNRMgJg@mail.gmail.com>
2023-09-06 22:20 ` Asad Ali
2023-09-08 5:09 ` Brian Inglis
-- strict thread matches above, loose matches on Subject: below --
2022-02-08 22:01 Bug Report julie77793
2022-02-09 6:29 ` Ernie Rael
2022-02-09 16:24 ` Bill Stewart
2003-05-05 16:21 Bug report Kern Sibbald
2003-05-05 16:38 ` Igor Pechtchanski
2003-05-05 17:14 ` Kern Sibbald
2003-05-05 17:30 ` Igor Pechtchanski
2003-05-05 17:33 ` Igor Pechtchanski
2003-05-05 16:40 ` Christopher Faylor
2001-06-06 22:21 David L Wiltshire
[not found] <19980630141709.614.rocketmail@send101.yahoomail.com>
1998-07-01 8:02 ` Bug Report Ronald Pijnacker
[not found] ` <199807010655.IAA00527.cygnus.gnu-win32@surgery1.best.ms.philips.com>
1998-07-02 9:53 ` Christopher G. Faylor
1997-02-16 22:10 bug report Sean McNeil
1997-02-13 1:21 Sergey Okhapkin
1997-02-12 16:36 Andres Takach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199702171624.QAA10445@avon.cc.strath.ac.uk \
--to=cabr85@ccsun.strath.ac.uk \
--cc=gnu-win32@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).