From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16423 invoked by alias); 29 Aug 2013 18:34:37 -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 16411 invoked by uid 89); 29 Aug 2013 18:34:36 -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:34:36 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_05,HELO_MISC_IP,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 JiaX1m0050eyEos01iaYzB; Thu, 29 Aug 2013 19:34:32 +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=BKoTAHxrXvoA:10 a=ihvODaAuJD4A:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=BKN_EAiRWCAA:10 a=8FahJwxkLnE8aAtbqYEA:9 a=l08VrlrODGQIi4ME:21 a=tkxb01aALdj5zKcX:21 a=wPNLvfGTeEIA:10 X-AUTH: gladman+brg:2500 Message-ID: <521F9439.6090103@gladman.plus.com> Date: Thu, 29 Aug 2013 18:34: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: Small Changes Needed for Windows Build with Visual Studio Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q3/txt/msg00000.txt.bz2 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