Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

error LNK2019: unresolved external symbol _CPXreadcopymipstart referenced in function _main

  • 1.  error LNK2019: unresolved external symbol _CPXreadcopymipstart referenced in function _main

    Posted Wed September 24, 2014 11:55 PM

    Originally posted by: maiklb2005


    I am trying to implement a MIP start in C API, but I receive an error shown above. 

    The syntax I am using is: status = CPXreadcopymipstart(env, lp, "MIP.mst"); as described in the reference manual. The file MIP.mst is well-defined.

    Other functions I am using that start with "CPX" and use parameters env and lp work well. 

    P.S. The code I am using is based on admipex1.c.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: error LNK2019: unresolved external symbol _CPXreadcopymipstart referenced in function _main

    Posted Thu September 25, 2014 12:23 AM

    What version of CPLEX or the reference manual are you referring to? CPXreadcopymipstart() has been deprecated a long time ago and was removed in version 12.5. Use CPXreadcopymipstarts() instead.

    Doesn't your compiler warn you about using an undeclared function? If not you should crank up the warning flags for your compiler to do so.


    #CPLEXOptimizers
    #DecisionOptimization