Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Link problem: error LNK2001 vs17

    Posted 04/12/18 08:32 AM

    Originally posted by: mezbaha


    Hello, I'm receiving the following errors:

    Error    LNK2001    unresolved external symbol "public: __cdecl Epsilon::~Epsilon(void)" (??1Epsilon@@QEAA@XZ) 
    Error    LNK2001    unresolved external symbol "public: __cdecl Epsilon::Epsilon(int)" (??0Epsilon@@QEAA@H@Z)  
    Error    LNK2001    unresolved external symbol "public: void __cdecl Epsilon::mainLoop(char *)" (?mainLoop@Epsilon@@QEAAXPEAD@Z)   
    Error    LNK1120    3 unresolved externals    (this is apparently due to the previous errors)

    Any suggestions how to overcome these? I'd greatly appreciate your help.

    I'm using cplex 12.8 with visual studio 2017 in win64.

    There is actually a similar topic already posted (https://www.ibm.com/developerworks/community/forums/html/threadTopic?id=1b3a5c34-4b6d-4161-ad90-d051afdd9ad2) but my Platform under Configuration Manager is already x64, so that did not help unfortunately.

    Thanks.

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Link problem: error LNK2001 vs17

    Posted 04/12/18 09:31 AM

    Are you sure this is related to CPLEX? According to the error message you are missing some definitions from a class called 'Epsilon'. To the best of my knowledge CPLEX does not provide a class of that name. My guess would be that you defined that class yourself but somehow either forgot to specify the required functions or forgot to add the .cpp file that specifies those functions.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Link problem: error LNK2001 vs17

    Posted 04/12/18 09:55 AM

    Originally posted by: mezbaha


    Thx for the answer.

    The thing is it does work actually when I run it on a cluster. That's why I don't think that's the case.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Link problem: error LNK2001 vs17

    Posted 04/13/18 02:26 AM

    Then I suggest to compare what exactly the linker command lines look like on the cluster and at the place where things fail.

    The 'Epsilon' class is nothing that CPLEX defines or references. So I am almost certain the problem is unrelated to CPLEX and I am not sure how we can help you.


    #CPLEXOptimizers
    #DecisionOptimization