From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19905 invoked by alias); 29 Aug 2013 18:38:55 -0000 Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org Received: (qmail 19895 invoked by uid 89); 29 Aug 2013 18:38:55 -0000 Received: from avasout06.plus.net (HELO avasout06.plus.net) (212.159.14.18) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Aug 2013 18:38:55 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_05,HELO_MISC_IP,KHOP_THREADED,RDNS_NONE autolearn=no version=3.3.2 X-HELO: avasout06.plus.net Received: from [192.168.1.21] ([212.159.26.30]) by avasout06 with smtp id Jier1m0040eyEos01iesCb; Thu, 29 Aug 2013 19:38:52 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=dIufxopb c=1 sm=1 tr=0 a=nO6JWm9Dsne7RoCvRGnC0w==:117 a=nO6JWm9Dsne7RoCvRGnC0w==:17 a=0Bzu9jTXAAAA:8 a=Wtn52_hbDy8A:10 a=s-oOdILq3KsA:10 a=ihvODaAuJD4A:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=07_y9WeTCxgA:10 a=2LXmKUyFYbx3Vtm_VRwA:9 a=7cwSyUbpAe5x0_ew:21 a=iS4clgxh_ssg8jiI:21 a=wPNLvfGTeEIA:10 X-AUTH: gladman+brg:2500 Message-ID: <521F953D.8000807@gladman.plus.com> Date: Thu, 29 Aug 2013 18:38:00 -0000 From: Brian Gladman User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "gsl-discuss@sourceware.org" Subject: Re: Small Changes Needed for Windows Build with Visual Studio References: <521F9439.6090103@gladman.plus.com> In-Reply-To: <521F9439.6090103@gladman.plus.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q3/txt/msg00001.txt.bz2 On 29/08/2013 19:34, Brian Gladman wrote: > Dear Rhys, Patrick and colleagues, > > As you may know, I provide build files that allow GSL to be built with > the Microsoft and the Intel compilers on Windows. To do this requires > only a small number of changes to the GSL source code as follows: > > In ieee-utils/env.c: > > void > gsl_ieee_env_setup (void) > { > const char * p = getenv("GSL_IEEE_MODE") ; > > int precision = 0, rounding = 0, exception_mask = 0 ; > > int comma = 0 ; > > #if defined( _MSC_VER ) /* BRG */ > > extern const char *fp_env_string; > p = fp_env_string; > > #else > > if (p == 0) /* GSL_IEEE_MODE environment variable is not set */ > return ; > > if (*p == '\0') /* GSL_IEEE_MODE environment variable is empty */ > return ; > > #endif > ... > > and early in matrix/test.c and vector/test.c: > > #if defined( _MSC_VER ) && defined( GSL_DLL ) /* BRG */ > #undef inline > #define inline __forceinline > #endif > > With these changes it is possible to build GSL on Windows using the > Microsoft and Intel compilers with no > further source code changes (I do also add one file to read the floating > point control word). > > Although I recognise that GSL on WIndows is not a priority, there is > nevertheless a substantial user community on this platform, some of whom > do make ongoing contributions to GSL. > > Whilst writing I would like to thank Rhys for helping me get bzr on > windows working. The effort has paid off since it is now working very well. > > with my regards, > > Brian Gladman > > My apologies, in describing these changes I forgot my punchline. Would it be possible to have these changes incorporated in the GSL source code? Brian Gladman