[ADOL-C] RFT: Visual Studio dll version

Kshitij Kulshreshtha kshitij at math.upb.de
Sat Jun 26 12:15:26 EDT 2010


thanks for testing.

As on 2010-06-26 17:54, Chuck Teeter did write:
> Hi Kshitij,
> 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

Yes another user also noticed this and reported. In the official
distribution we will include the redistributable vc++ 2010 runtime.

> 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:

The extra defines you have are also in the
windows/{sparse,nosparse}/config.h files. I had also put in an /INCLUDE
for this directory and defined HAVE_CONFIG_H=1. If this file is included
then these defines should exist.

> 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.

Please make sure the correct config.h files are included. If the problem
persists, I'll change the project files to contain these macros directly
instead of using a config.h.

Kshitij Kulshreshtha

Institut für Mathematik,
Universität Paderborn,
Warburger Straße 100,
33098 Paderborn.

Büro: A3.319

Arnikaweg 62
33100 Paderborn.

More information about the ADOL-C mailing list