| 1 |
D bindings for the GNU Scientific Library |
|---|
| 2 |
(c) Daniel Truemper <truemped.dsource <with> hence22.org> |
|---|
| 3 |
|
|---|
| 4 |
Table of contents |
|---|
| 5 |
================= |
|---|
| 6 |
0. Disclaimer |
|---|
| 7 |
1. Remarks |
|---|
| 8 |
2. Build & Install |
|---|
| 9 |
3. Testing |
|---|
| 10 |
4. Using the library |
|---|
| 11 |
5. Links |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
0. Disclaimer |
|---|
| 16 |
============= |
|---|
| 17 |
|
|---|
| 18 |
These bindings have only been tested in a Debian/Linux (x32) environment using |
|---|
| 19 |
gdc. If you have successfully run them on Windows or Mac or whatever, simply |
|---|
| 20 |
contact me and I'll add appropriate comments to this file; or you might change |
|---|
| 21 |
this file on your own and submit it via SVN. |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
1. Remarks |
|---|
| 26 |
========== |
|---|
| 27 |
|
|---|
| 28 |
This version really is beta! If you want to or are using these bindings and |
|---|
| 29 |
experience erros and have fixed them, feel free to add them either directly |
|---|
| 30 |
via SVN to the bindings project[1] or you might find me on #d or #d.tango on |
|---|
| 31 |
freenode or post in the forums. Of corse you can also contact me via email. |
|---|
| 32 |
|
|---|
| 33 |
Since I am currently writing my diploma thesis I might not have the time to |
|---|
| 34 |
really test _all_ functions so there really might be errors... |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
2. Builld & Install |
|---|
| 39 |
=================== |
|---|
| 40 |
|
|---|
| 41 |
I built this library with the help of dsss[2] a really great tool you should |
|---|
| 42 |
consider using, if you are not by now. Writing Makefiles is obsolete with it. |
|---|
| 43 |
If you have dsss installed you simply type in the main directory |
|---|
| 44 |
|
|---|
| 45 |
$ dsss build |
|---|
| 46 |
|
|---|
| 47 |
In order to install the library correctly just type |
|---|
| 48 |
|
|---|
| 49 |
$ dsss install |
|---|
| 50 |
|
|---|
| 51 |
If you (one day) do not need the library anymore just uninstall it using |
|---|
| 52 |
|
|---|
| 53 |
$ dsss uninstall gsl |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
3. Testing |
|---|
| 58 |
========== |
|---|
| 59 |
|
|---|
| 60 |
I have added the first basic testing routines to the test directory. Again |
|---|
| 61 |
there is a dsss.conf file allowing you to build the testing program on your |
|---|
| 62 |
own: |
|---|
| 63 |
|
|---|
| 64 |
$ dsss build |
|---|
| 65 |
|
|---|
| 66 |
and then run |
|---|
| 67 |
|
|---|
| 68 |
$ ./testgsl |
|---|
| 69 |
|
|---|
| 70 |
If you want to help me do the testing, simply add routines to the |
|---|
| 71 |
"test/test/main.d" file. It's a bit annoying for the moment but I couldn't |
|---|
| 72 |
find a more less usefull testing environment for now, it will probably change |
|---|
| 73 |
in the future. |
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
|
|---|
| 77 |
4. Using the library |
|---|
| 78 |
==================== |
|---|
| 79 |
|
|---|
| 80 |
If you simply want to use the library with your own program and have |
|---|
| 81 |
successfully install the library with dsss, add the following line to your |
|---|
| 82 |
dsss.conf file: |
|---|
| 83 |
|
|---|
| 84 |
buildflags = -L-lgsl -L-lblas |
|---|
| 85 |
|
|---|
| 86 |
Of corse you need the real libraries installed on your machine. On Debian |
|---|
| 87 |
based systems search for libgsl and libblas. |
|---|
| 88 |
|
|---|
| 89 |
If you have done this, you should be able to simply add import statements |
|---|
| 90 |
similar to the "#include <gsl/gsl_*.h>" statements from the documentation. |
|---|
| 91 |
You only have to change the import from "gsl/*" to "gsl.*" ommiting the ".h" |
|---|
| 92 |
in the end. |
|---|
| 93 |
|
|---|
| 94 |
5. Links |
|---|
| 95 |
======== |
|---|
| 96 |
[1]: http://www.dsource.org/projects/bindings |
|---|
| 97 |
[2]: http://www.dsource.org/projects/dsss |
|---|