Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  LINKER error in Visual Studio 2005/2008

    Posted 08/14/08 07:47 PM

    Originally posted by: SystemAdmin


    [Sylvain said:]

    Here is an error I get when trying to compile an example (C:\ILOG\CPLEX110\examples\x86_.net2005_8.0\stat_mda\blend.vcproj) from Ilog Cplex 11.0 :

    1>------ Build started: Project: blend, Configuration: Release Win32 ------
    1>Compiling...
    1>blend.cpp
    1>Linking...
    1>concert.lib(iloenv.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (__imp_?facet_Register@facet@locale@std@@CAXPAV123@@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
    1>concert.lib(iloenv.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D@0@ABVlocale@0@@Z)
    1>.\..\..\..\examples\x86_.net2005_8.0\stat_mda/blend.exe : fatal error LNK1120: 2 unresolved externals
    1>Build log was saved at "file://c:\ILOG\CPLEX110\examples\x86_.net2005_8.0\stat_mda\BuildLog.htm"
    1>blend - 3 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    This error happens when I use Visual Studio 2008 but not when I use Visual Studio 2005, with which it works perfectly. On another computer, I have seen the exact same error when using Visual Studio 2005.
    Could anyone help me solve this issue ?
    Thanks



    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: LINKER error in Visual Studio 2005/2008

    Posted 08/15/08 06:16 AM

    Originally posted by: SystemAdmin


    [Sylvain said:]

    Actually the error on the other computer was happening using Visual Studio 2008 also.
    So it looks like Ilog Cplex does not compile correctly on Visual Studio 2008, at least for me.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: LINKER error in Visual Studio 2005/2008

    Posted 08/18/08 11:17 PM

    Originally posted by: SystemAdmin


    [AlexZnam said:]

    I have the same problem with VS2008 and CPLEX 9.0
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: LINKER error in Visual Studio 2005/2008

    Posted 08/19/08 02:32 AM

    Originally posted by: SystemAdmin


    [AlexZnam said:]

    I just installed version 10.1 of CPLEX and set in VS2008 all the directory settings appropriately. Everything has been compiled without any problems
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: LINKER error in Visual Studio 2005/2008

    Posted 08/19/08 02:54 AM

    Originally posted by: SystemAdmin


    [Sylvain said:]

    Same for me Cplex 10.1 seems to be working well with Visual 2008 but not Cplex 11.0
    #CPLEXOptimizers
    #DecisionOptimization