This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: gsl *.h and c++
- To: Brook Milligan <brook at biology dot nmsu dot edu>
- Subject: Re: gsl *.h and c++
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Mon, 21 Feb 2000 18:55:22 +0000 (GMT)
- Cc: gsl-discuss at sourceware dot cygnus dot com
- References: <200002190615.XAA16495@biology.nmsu.edu>
Our current policy is to put the extern "C" on the application side,
but we'll consider this again in the light of requests for it to go in
the header files.
Brook Milligan writes:
> It seems that the gsl libs require "C" linkage in order to resolve the
> symbols in the library. However, the header files do not explicitly
> specify that, so they cannot be used in C++ programs without the
>
> extern "C" {
> #include <gsl_*.h>
> }
>
> idiom every time a header is included.
>
> May I suggest that the header files be modified to include the
>
> extern "C"
>
> within them so that they can be included directly in C++ programs.
>
> Thanks for your help.
>
> Cheers,
> Brook
>