From: "Matthew J. Doller" <mdoller@wpi.edu>
To: gsl-discuss <gsl-discuss@sources.redhat.com>
Subject: stupid question
Date: Mon, 19 Nov 2001 10:26:00 -0000 [thread overview]
Message-ID: <1006893998.25374.4.camel@mrburns> (raw)
Message-ID: <20011119102600.91LUeykohWwjRQnV8qKMx8-g-QPvrZeajkYJdlqOgoM@z> (raw)
can someone shed a tiny bit of light on why this seemingly simple
routine is not compiling for me?
--- BEGIN CODE ---
#include "matrix-generic.h"
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
gsl_matrix * matrix_return_upper ( gsl_matrix *m ){
int num_rows, num_cols, error;
num_rows = m->size1;
num_cols = m->size2;
gsl_matrix * return_matrix = gsl_matrix_alloc ( num_rows , num_cols );
...
...
return (gsl_matrix *) return_matrix;
}
--- END CODE ---
compile command:
gcc -o mytest matrix-generic.c -lgsl -lgslcblas -lm
compile errors:
matrix-generic.c: In function `matrix_return_upper':
matrix-generic.c:30: parse error before `*'
the * in question is from the line:
gsl_matrix * return_matrix = gsl_matrix_alloc ( num_rows , num_cols );
for now, i have stripped out all the rest of the code after that line to
simplify debugging. please tell me that i'm over looking something
simple.
thanks in advance
matt
--
Matthew J. Doller
mdoller@wpi.edu
http://www.wpi.edu/~mdoller
next reply other threads:[~2001-11-27 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 13:20 Matthew J. Doller [this message]
2001-11-19 10:26 ` Matthew J. Doller
2001-12-19 13:20 ` Achim Gaedke
2001-11-20 2:00 ` Achim Gaedke
2009-10-11 13:52 Stupid question Robert G. Brown
2009-10-11 14:06 ` Robert G. Brown
2009-10-11 16:49 ` John D Lamb
2009-10-11 17:42 ` Andrew W. Steiner
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=1006893998.25374.4.camel@mrburns \
--to=mdoller@wpi.edu \
--cc=gsl-discuss@sources.redhat.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).