[gmx-developers] Windows64 builds and gsl linking

Erik Marklund erikm at xray.bmc.uu.se
Tue Feb 21 21:45:05 CET 2012


Hi,

The plan is to remove those GSL dependencies. The question is when it'll actually happen.

Erik

20 feb 2012 kl. 23.20 skrev Mirco Wahab:

> Hi folks,
> 
> after I managed to build native VS2010/x64 versions of
> - libxml2/libiconv
> - fftw3
> - gsl/cblas
> 
> into dlls, I tried to connect this w/Gromacs into a
> working executable.
> 
> Thanks to the cmake build system adapted in 4.5.5,
> this was succesful in the end.
> 
> The following problem was encountered during the build:
> 
> - the few modules that actually use gsl
> (geminate.c, gmx_hbond.c, gmx_kinetics.c)
> define "HAVE_LIBGSL" before including the
> corresponding headers. This is fine, but
> for the windows build, there should be another
> defined variable to indicate dll or static
> gsl linkage *to the gsl headers*, like
> 
>    #ifdef HAVE_LIBGSL
>      #define GSL_DLL     <-------- default (otherwise GSL_STATIC)
>      #include <gsl/gsl_multimin.h>
>      ...
> 
> This allows to redefine the function signature during
> compilation, otherwise symbols won't be found by the
> executables (g_analyze etc.) if accessed through another
> library (gmxana).
> 
> - after manually inserting a #define GSL_DLL line into the
>  three modules indicated above, all tools were linking fine.
> 
> Besides, in gmx_kinetics.c resides a function
> 
>     static char *itoa(int i)
> 
> which uses the name of the more-or-less popular C library function
> itoa() (not ANSI, but supported by Visual Studio and invoked by
> stdlib.h).
> 
> Thanks & Regards
> 
> M.
> 
> -- 
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the www interface or send it to gmx-developers-request at gromacs.org.

-----------------------------------------------
Erik Marklund, PhD
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,    75124 Uppsala, Sweden
phone:    +46 18 471 6688        fax: +46 18 511 755
erikm at xray.bmc.uu.se
http://www2.icm.uu.se/molbio/elflab/index.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20120221/de3c444a/attachment.html>


More information about the gromacs.org_gmx-developers mailing list