[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl]Not a bug, just another platform on which GSL works fine...
From: |
Maarten De Munck |
Subject: |
[Bug-gsl]Not a bug, just another platform on which GSL works fine... |
Date: |
Mon, 16 Dec 2002 22:03:39 +0100 |
User-agent: |
Mutt/1.2.5i |
Hi all,
I am a mechanical engineering student, and I compiled GSL for use with
my master thesis today. In the thesis, I work (together with the
research group), on a program for sound prediction, using the indirect
Trefftz approach. (Just to let you know what GSL can be used for...)
At the department, we mainly use HP workstations. Our primary C (and
C++) compiler is the HP ANSI C++ compiler. This compiler is extremely
strict about type conversions, and the source code needed two little
changes to compile:
In vector/vector_source.c, line 28:
const BASE zero = ZERO;
should become
BASE zero = ZERO;
because this zero is used as a non-const function argument, passed by
address. Probably it is also possible to change the function declaration
somewhere, but this change was faster, and it isn't that dirty.
And in matrix/matrix_source.c, line 25, the same change is needed.
With these two changes, GSL compiles fine with the HP aCC compiler. The
compiler needs the '-AE' flag, to turn the c89 mode on, but that's quite
normal for C programs.
Congratulations with the code: this is the best C code I've ever seen.
(the first time I've seen some kind of templates in C, and you've done
it very nice!)
Groetjes,
Maarten
--
An expert is a man who has made all the mistakes which can be made, in a
narrow field.
-- Niels Bohr
- [Bug-gsl]Not a bug, just another platform on which GSL works fine...,
Maarten De Munck <=