Hi Mirco,<div><br></div><div>I think you might be the first who compiled Gromacs with GSL on Windows. Could you upload your fix to <a href="http://gerrit.gromacs.org">gerrit.gromacs.org</a>?</div><div><br></div><div>Thanks</div>

<div>Roland<br><br><div class="gmail_quote">On Mon, Feb 20, 2012 at 5:20 PM, Mirco Wahab <span dir="ltr">&lt;<a href="mailto:mirco.wahab@chemie.tu-freiberg.de" target="_blank">mirco.wahab@chemie.tu-freiberg.de</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks,<br>
<br>
after I managed to build native VS2010/x64 versions of<br>
- libxml2/libiconv<br>
- fftw3<br>
- gsl/cblas<br>
<br>
into dlls, I tried to connect this w/Gromacs into a<br>
working executable.<br>
<br>
Thanks to the cmake build system adapted in 4.5.5,<br>
this was succesful in the end.<br>
<br>
The following problem was encountered during the build:<br>
<br>
- the few modules that actually use gsl<br>
  (geminate.c, gmx_hbond.c, gmx_kinetics.c)<br>
  define &quot;HAVE_LIBGSL&quot; before including the<br>
  corresponding headers. This is fine, but<br>
  for the windows build, there should be another<br>
  defined variable to indicate dll or static<br>
  gsl linkage *to the gsl headers*, like<br>
<br>
     #ifdef HAVE_LIBGSL<br>
       #define GSL_DLL     &lt;-------- default (otherwise GSL_STATIC)<br>
       #include &lt;gsl/gsl_multimin.h&gt;<br>
       ...<br>
<br>
  This allows to redefine the function signature during<br>
  compilation, otherwise symbols won&#39;t be found by the<br>
  executables (g_analyze etc.) if accessed through another<br>
  library (gmxana).<br>
<br>
- after manually inserting a #define GSL_DLL line into the<br>
   three modules indicated above, all tools were linking fine.<br>
<br>
Besides, in gmx_kinetics.c resides a function<br>
<br>
      static char *itoa(int i)<br>
<br>
which uses the name of the more-or-less popular C library function<br>
itoa() (not ANSI, but supported by Visual Studio and invoked by<br>
stdlib.h).<br>
<br>
Thanks &amp; Regards<br>
<span><font color="#888888"><br>
M.<br>
<br>
--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
<br>
<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br><a href="tel:865-241-1537" value="+18652411537" target="_blank">865-241-1537</a>, ORNL PO BOX 2008 MS6309<br>


</div>