Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  CPLEX 11.2 with Visual Studio 2010

    Posted Mon April 26, 2010 12:57 PM

    Originally posted by: mlapp007


    Hello everyone,

    I have a problem that hopefully someone has run into before. I am writing C++ code that uses the CPLEX solver to solve some optimization problems. This code was written in C++ in Visual Studio 2008. In this environment, the code compiled, built and executed without any problems.

    I just recently upgraded to Visual Studio 2010 and tried to build the project. I have not changed any settings, but I get the following build errors below. Does anyone know how to deal with these errors or perhaps change some settings in Visual Studio 2010 to make it build? Any help is appreciated.

    Marcial

    More errors are in the text file attached.

    1>------ Build started: Project: Tail Manager, Configuration: Release Win32
    1>concert.lib(ilotuplerequest.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl
    std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z)
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Wed April 28, 2010 09:14 AM

    Originally posted by: mlapp007


    After several days of fighting with Visual Studio 2010, I finally found an answer.

    To fix this issue, it is as simple as setting the Platform to v90 (instead of the default v100).

    Perhaps this is helpful to others who will be upgrading.

    Cheers,

    Marcial
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Wed April 28, 2010 07:54 PM

    Originally posted by: philbri


    Hi Marcial,

    I've just had the same problem - trying to run the ilog vb.net demos in vs2010.

    How do I change the platform to v90? I'm using vb2010 express editions - had a poke around but failed to find any settings to change.

    Phil
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Wed April 28, 2010 08:08 PM

    Originally posted by: mlapp007


    Hey Phil,

    To change the project parameters, at least in Visual C++, I did the following:

    1. Right click on the project name under "Solution Explorer" and select "Properties"
    2. Select "Configuration Properties" and then select "Platform Toolset"
    3. Change the drop-down to "v90"

    I have also attached a screen-shot.

    Hope this helps.

    Marcial
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Wed April 28, 2010 08:42 PM

    Originally posted by: philbri


    Thanks Marcial. Unfortunately its not the same in vb2010, so I'm still stuck. I did remember reading you could compile projects to be compatible with prior versions of .net but I don't know where that setting is.

    Phil
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Mon May 10, 2010 01:45 PM

    Originally posted by: TomJK


    Hello Marcial,

    did setting the toolset to v90 work for you without having VS 2008 installed? I have the same problem right now (with CPLEX 12.1) but when I try to set the toolset in VS 2010 from v100 to v90 and recompile, Visual Studio is complaining that I need to have VS 2008 installed.

    (Or do you have a parallel installation of VS 2008 and VS 2010? Does it work without problems?)

    Thanks,
    Tom.
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Sun May 30, 2010 06:11 PM

    Originally posted by: CM52


    I am having the same problem as TomJK. Is the only way around this to have VS2008 installed on the machine? Thanks in advance to any responses!
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: CPLEX 11.2 with Visual Studio 2010

    Posted Wed February 15, 2012 11:44 AM

    Originally posted by: SystemAdmin


    Please note that official support for Visual Studio 2010 was added in version 12.2.0.1 (see the detailed system requirements here).
    With any older version of CPLEX you are on your own and chances are that it will not work, especially if you are using C++.
    #CPLEXOptimizers
    #DecisionOptimization