This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gsl *.h and c++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]