[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] gsl and C++
From: |
Thomas Spuhler |
Subject: |
[Help-gsl] gsl and C++ |
Date: |
Thu, 7 Jul 2005 10:47:13 -0700 |
User-agent: |
KMail/1.7.2 |
I am not a professional programmer and may this is not what you are looking
for.
I just included the header in my C++ program
#include <math.h>
#include <gsl/gsl_sf_bessel.h>
#include <stdio.h>
#include <gsl/gsl_errno.h>
put this into the makefile:
GSLLIBS = -L/usr/local/lib -lgsl -lgslcblas
GSLINCS = -I/usr/local/include
# space seperated list of source files in program
SOURCES = bessel.cpp
# change testProgram.exe to the name you wish your
# executable program to be
bessel: $(SOURCES)
g++ -o $@ $(GSLINCS) $(GSLLIBS) $(SOURCES)
On Thursday 07 July 2005 04:21 am, Walter Dehnen wrote:
> Hi,
>
> I am considering using gsl for my numerical work, all of which is done in
> C++. While I acknowledge that gsl can be linked from C++, I find this NOT
> a satisfying option, for example, when using pseudo-templated gsl
> functions from within a C++ template.
>
> I therefore wonder whether you have plans to generate genuine C++ header
> files for gsl (not on your TODO list, I believe). Mostly, this would only
> involve wrappers that include the original C headers and define some
> inlined templates (and avoid C macros), very similar to the C++ std:: math
> library (file cmath).
>
> Cheers,
> Walter.
>
> **************************************************************
> Dr Walter Dehnen
> Department of Physics & Astronomy Tel: +44 (0)116 2523549
> University of Leicester Fax: +44 (0)116 2522070
> Leicester LE1 7RH address@hidden
> United Kingdom
> **************************************************************
>
>
>
> _______________________________________________
> Help-gsl mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl
--
Best regards
Thomas Spuhler
pgpphhcFKPXh5.pgp
Description: PGP signature