[Coin-discuss] XPRESS MP and OSI

Jesper Hansen jesper at carmen.se
Wed Jun 18 10:06:27 EDT 2003


I got some help from Susanne Heipcke, Dash Optimization:

> I'm not sure that I follow. I have added xpressmp/bin to the path and all
> libraries in xpressmp/lib is added to the compilation. What exactly is the
> macro DLL?

This macro is required for compiling the older versions of Xpress under
Windows.
You either have to add this definition as compiler option or you copy the
following into your source code, immediately before the inclusion of the
header
file "xpresso.h":

#ifdef _WIN32
#define DLL
#endif

#include "xpresso.h"


I.e. should be added to OsiXprSolverInterface.cpp like this:

#ifdef _WIN32
#define DLL
#endif

#define __ANSIC_
#include <xpresso.h>
#undef  __ANSIC_

#include "OsiXprSolverInterface.hpp"

....

Best regards

Jesper Hansen


> -----Original Message-----
> From: coin-discuss-admin at www-124.ibm.com
> [mailto:coin-discuss-admin at www-124.ibm.com]On Behalf Of Matthew Saltzman
> Sent: Wednesday, June 18, 2003 4:37 AM
> To: COIN-discuss
> Subject: Re: [Coin-discuss] XPRESS MP and OSI
>
>
> On Tue, 17 Jun 2003, Jesper Hansen wrote:
>
> > I'm using Xpress-MP 2003B with Microsoft Visual C++ 6.0 and
> OSI. I however
> > get the error messages listed below.
> >
> > Have anyone else experienced similar problems?
>
> The OsiXprSolverInterface was built against XPRESS v12 and v13.  As far as
> I know, you're the first to report trying it with XPRESS 2003.  Also, we
> are still using the XPRESS v12 API, which is deprecated but should still
> work with v2003.
>
> I'm not a Windows developer, but it looks to me like your linker is
> failing to find the XPRESS libraries.  Check to make sure that:
>
> (a) the Xpress-Optimizer callable libraries are properly installed, and
>
> (b) the path to the XPRESS libraries is properly set in
> COIN/Win/startMsDevStudio.bat.
>
> Then start Visual Studio with that .bat file.  That should set the paths
> and load the project files you need.
>
> HTH.  Let us know if not.
>
> >
> >
> > Linking...
> > OsiXprSolverInterface.obj : error LNK2001: unresolved external symbol
> > _maxim at 4
> > OsiXprSolverInterface.obj : error LNK2001: unresolved external symbol
> > _minim at 4
> >[...]
> >
> > --
> > Jesper Hansen                   mailto:jesper at carmenconsulting.com
> > Carmen Consulting, Fruebjergvej 3, Box 248, DK-2100 Kbh Ø, Denmark
> > Telephone: +45 39 17 83 80                 Mobile: +45 61 33 29 69
> > http://www.carmenconsulting.com
>
> --
> 		Matthew Saltzman
>
> Clemson University Math Sciences
> mjs at clemson.edu
> http://www.math.clemson.edu/~mjs
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at www-124.ibm.com
> http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
>
>





More information about the Coin-discuss mailing list