Changeset 306


Ignore:
Timestamp:
Apr 6, 2006 3:49:16 PM (13 years ago)
Author:
lou
Message:

cbc -miplib prints warning when cbc built without OsiCbc?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Test/unitTest.cpp

    r277 r306  
    4343
    4444#ifdef CBC_USE_CBC
    45 void CbcUnitTest (const std::vector<OsiCbcSolverInterface*> & vecEmptySiP,
    46                   const std::string & mpsDir)
     45void CbcMiplibTest (const std::vector<OsiCbcSolverInterface*> & vecEmptySiP,
     46                    const std::string & mpsDir)
    4747{
    4848  int i ;
     
    300300  }
    301301}
    302 #endif
     302#endif  // CBC_USE_CBC
     303
    303304//----------------------------------------------------------------
    304305// unitTest  [-miplibDir=V2]
     
    390391
    391392    testingMessage( "Testing some miplib stuff\n" );
    392     CbcUnitTest(vecSi,miplibDir);
     393    CbcMiplibTest(vecSi,miplibDir);
    393394
    394395    unsigned int i;
     
    396397      delete vecSi[i];
    397398  }
    398 #endif
     399#else   // CBC_USE_CBC
     400  std::cerr
     401    << "cbc has been built without OsiCbc support. To enable the -miplib\n"
     402    << "option, you must enable libOsiCbc in Makefile.location, then\n"
     403    << "execute the command `make clean cbc' to rebuild the cbc program."
     404    << std::endl ;
     405#endif  // CBC_USE_CBC
    399406  testingMessage( "All tests completed successfully\n" );
    400407  return 0;
Note: See TracChangeset for help on using the changeset viewer.