From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3457 invoked by alias); 15 Dec 2003 18:46:12 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 3423 invoked from network); 15 Dec 2003 18:46:12 -0000 Received: from unknown (HELO aibo.runbox.com) (193.71.199.94) by sources.redhat.com with SMTP; 15 Dec 2003 18:46:12 -0000 Received: from [10.9.9.16] (helo=lassie.runbox.com) by lufsen.runbox.com with esmtp (Exim 4.24) id 1AVxjP-0005QS-8T for gsl-discuss@sources.redhat.com; Mon, 15 Dec 2003 19:46:11 +0100 Received: from [81.193.24.56] (helo=runbox.com) (Authenticated Sender=j.scott@runbox.com) by lassie.runbox.com with asmtp (Exim 4.24) id 1AVxj6-0001Gq-5r for gsl-discuss@sources.redhat.com; Mon, 15 Dec 2003 19:45:52 +0100 Message-ID: <3FDE0176.2080903@runbox.com> Date: Mon, 15 Dec 2003 18:46:00 -0000 From: "James E. Scott" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: gsl-discuss@sources.redhat.com Subject: Re: Did *anyone* actually build GSL under Visual Studio? References: <1071487891.11766.ezmlm@sources.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Sender: 160313 X-SW-Source: 2003-q4/txt/msg00129.txt.bz2 yes, it _is_ possible-- we're doing so on a regular basis with Visual Studio 6 and a recent cygwin. It looks like you're having problems with underscores on your symbols (there should be no leading underscore on the names in the .def files). We found we had to modify msvc/Makefile as follows: update: nm --demangle usr/lib/libgsl.a > libgsl.nm.dat wc -l libgsl.nm.dat nm --demangle usr/lib/libgslcblas.a > libgslcblas.nm.dat wc -l libgslcblas.nm.dat The --demangle option to nm removes underscores if gcc is generating them. btw I have a wish regarding this. It would be nice if the code used a definition like: #ifdef _WIN32 #define gslextern __declspec(dllexport) extern #else #define gslextern extern #endif for all exported functions. Then VS6 users wouldn't have to build the whole thing with gcc just to get symbol info. We just need a way of changing the 3000-odd function definitions :-) James > > Subject: > Did *anyone* actually build GSL under Visual Studio? > From: > Mark Dunner > Date: > Wed, 10 Dec 2003 08:29:19 -0800 (PST) > To: > gsl-discuss@sources.redhat.com > > >Dear all, > >Did anyone actually manage to build the GSL 1.4 under Visual Studio at >all? And possibly managed to build a test program against it? > >After a lot of problems, I am stuck here > >http://mail.gnu.org/archive/html/help-gsl/2003-12/msg00011.html > >Thank you very much. > >Regards, >Mark > >