Hi Kshitij,<br><br>I tested the dll and noticed a couple of things. First, users of the dll built with Visual Studio 2010 will need to download the Visual C++ 2010 runtime redistributables (win32 and x64 as required) before using it. Second, I noticed that my test program fails (I receive an access violation) in calls to the function myfree(), which is defined in adalloc.h. I think some additional preprocessor symbols may need to be added to the VS 2010 project for this function to work correctly in Windows. Here is what I currently use:<br>
<br>WIN32;_DEBUG;_LIB;ADOLC_VERSION=2;ADOLC_SUBVERSION=1;ADOLC_PATCHLEVEL=0;_CRT_SECURE_NO_WARNINGS;HAVE_MALLOC=1;HAVE_REALLOC=1<br><br>I think the last two symbols (HAVE_MALLOC and HAVE_REALLOC) are the ones that affect the implementation of memory allocation/deallocation. I didn't see these in your project file, and wonder if this might be the reason.<br>
<br><br><br><br><div class="gmail_quote">On Tue, Jun 22, 2010 at 9:06 AM, Kshitij Kulshreshtha <span dir="ltr"><<a href="mailto:kshitij@math.upb.de">kshitij@math.upb.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello everyone,<br>
this is a second attempt requesting the testing a Windows dll version<br>
of ADOL-C. The first attempt was presumably swallowed by the mailing<br>
list due to a too large attachment. Please excuse me if you're getting<br>
this email multiple times.<br>
<br>
Please find a tarball at<br>
<url:<a href="http://www2.math.uni-paderborn.de/index.php?id=12067&L=1" target="_blank">http://www2.math.uni-paderborn.de/index.php?id=12067&L=1</a>> "First<br>
Windows support of current version (tar.gz)", containing the ADOL-C<br>
Sources and Visual Studio 2010 project and solution files. The tarball<br>
also contains the results of my compilation on 32bit Windows XP.<br>
<br>
The subdirectory of interest is 'windows/' and the project file has two<br>
configurations 'sparse' and 'nosparse'. Since the 'sparse' version<br>
requires linking with ColPack, the sources and the Visual Studio project<br>
file is included in the 'ThirdParty/ColPack/' subdirectory.<br>
<br>
The documented examples in 'ADOL-C/examples' can also be compiled using<br>
the Visual Studio project and solution files in that directory. These<br>
also have the configurations 'sparse' or 'nosparse' analoguous to the dll.<br>
<br>
Please test the precompiled dll and exe files contained in the tarball<br>
as well as the Visual Studio files by trying to compile the dll and the<br>
examples again. Please refer to the files Readme_VC++.txt in the<br>
respective subdirectories too.<br>
<br>
Since I am not an expert on Windows, I am unsure as to what files must<br>
be distributed as the 'official' precompiled ADOL-C library for Windows<br>
and in what format.<br>
<br>
I would be thankful for all the input I can get.<br>
<br>
Thanks.<br>
--<br>
Kshitij Kulshreshtha<br>
<br>
Institut für Mathematik,<br>
Universität Paderborn,<br>
Warburger Straße 100,<br>
33098 Paderborn.<br>
<br>
Büro: A3.319<br>
<br>
Privatanschrift:<br>
Arnikaweg 62<br>
33100 Paderborn.<br>
<br>
<br>
_______________________________________________<br>
ADOL-C mailing list<br>
<a href="mailto:ADOL-C@list.coin-or.org">ADOL-C@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/adol-c" target="_blank">http://list.coin-or.org/mailman/listinfo/adol-c</a></blockquote></div><br>