Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Setting up CPLEX12 64bit on Visual Studio 2010

  • 1.  Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Sat October 09, 2010 10:53 PM

    Originally posted by: billtheguy


    Dear all,

    Thanks for reading.
    I used to be fine with 32 bit CPLEX on VS2008. Now I have Visual Studio 2010 installed and try to build my own applications to call CPLEX12 64bit. I set up my project configurations exactly the same way as the c_cpp.html shows in the documentation. I can compile without any problem. But linking is full of errors. I select from Configuration manager the project platform as X64. Errors are shows as:

    concert.lib(ilodatacolumn.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPEAV123@@Z)

    Can anyone help? Or show how you setup CPlex 64bit with VS2010? Thank you in advance.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Sun October 17, 2010 07:28 PM

    Originally posted by: billtheguy


    Anyone has any clue? Please... Thank you.

    1>LIBCMT.lib(mlock.obj) : error LNK2005: _lock already defined in MSVCRTD.lib(MSVCR100D.dll)
    1>LIBCMT.lib(crt0.obj) : error LNK2005: mainCRTStartup already defined in MSVCRTD.lib(crtexe.obj)
    1>LIBCMT.lib(errmode.obj) : error LNK2005: __set_app_type already defined in MSVCRTD.lib(MSVCR100D.dll)
    1>LIBCMT.lib(lconv.obj) : error LNK2005: localeconv already defined in MSVCRTD.lib(MSVCR100D.dll)
    1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>concert.lib(ilodatacolumn.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPEAV123@@Z)
    1>concert.lib(ilointervalsi.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPEAV123@@Z)
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 18, 2010 06:45 PM

    Originally posted by: SystemAdmin


    The C++ CPLEX and Concert libraries built with Visual Studio 2008 can only be used with Visual Studio 2010 if you set Project->Properties->Configuration Properties->General->Platform Toolset to v90 and you have a Visual Studio 2008 installation. We will be releasing libraries built with Visual Studio 2010 soon for use with the v100 Platform Toolset.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 25, 2010 11:06 PM

    Originally posted by: billtheguy


    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\v90\Microsoft.Cpp.x64.v90.targets(35,5): error MSB8014: Execution path (c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64) could not be found.
    Thank you for your help.

    (1) I did what you suggested, but the system tell me error as above. I do have VS 2008 installed.
    (2) I try to open example projects using VS2008, I have the error
    "the project consists entirely of configurations that require support for platforms which are not installed on this machine. The project cannot be loaded"

    I am running CPLEX12.1 64bit on Windows7 64bit, with VS2010 professional and VS2008professional installed.
    Thank you.
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Thu October 21, 2010 06:18 AM

    Originally posted by: SystemAdmin


    You may be interested in this fixpack which adds support for VS 2010.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Thu October 21, 2010 07:36 AM

    Originally posted by: RodrigoLinfati


    thanks daniel, for the fix.
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 25, 2010 06:51 AM

    Originally posted by: RodrigoLinfati


    @daniel

    the fix can be installe on Cplex 12.2 academic edition?
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 25, 2010 11:16 AM

    Originally posted by: SystemAdmin


    I think so but I am not really sure about that.
    Do you experience any problems?
    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 25, 2010 12:31 PM

    Originally posted by: RodrigoLinfati


    IBM Ilog Cplex Optimization Studio 12.2 not found
    This is a fix pack or IBM Ilog Cplex Optimization Studio 12.2....

    :(

    I have the academic edition installed, and working.
    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Mon October 25, 2010 08:48 PM

    Originally posted by: SuperUncle


    I met the same problem... Somebody help!!
    #CPLEXOptimizers
    #DecisionOptimization


  • 11.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Wed October 27, 2010 11:15 AM

    Originally posted by: SystemAdmin


    Try to use the directory "stat_mta" rather than "stat_mda" in the link library.
    I got the same problem, by changing this it works.
    #CPLEXOptimizers
    #DecisionOptimization


  • 12.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Wed November 10, 2010 05:18 PM

    Originally posted by: SystemAdmin


    Sorry, I just learned that academic versions are not entitled for fixpacks. You will have to wait for the next release :-(
    #CPLEXOptimizers
    #DecisionOptimization


  • 13.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Fri May 13, 2011 08:34 AM

    Originally posted by: PaulF.


    Is there already a solutions for this ? I mean Visual Studio 2010 + CPLEX 12.2 academic edition ?

    Thanks in advance

    Paul
    #CPLEXOptimizers
    #DecisionOptimization


  • 14.  Re: Setting up CPLEX12 64bit on Visual Studio 2010

    Posted Thu July 14, 2011 11:17 AM

    Originally posted by: SystemAdmin


    try this link? This works for my CPLEX122 32bit on Visual Studio 2010
    http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/cc71b526-8c08-4445-abef-409464942e30
    #CPLEXOptimizers
    #DecisionOptimization