Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/examples/cbc_driverC_sos.c

    • Property svn:keywords set to Author Date Id Revision
    r1574 r1902  
    44  This code is licensed under the terms of the Eclipse Public License (EPL).
    55
    6   $Id#
     6  $Id$
    77*/
    88
     
    7777#if defined(SAMPLEDIR)
    7878  /*
    79     SAMPLEDIR should be something like "path/to/mps/directory/", including the
    80     quotes and final directory separator. Don't forget to properly escape
     79    SAMPLEDIR should be something like "path/to/mps/directory", including the
     80    quotes and excluding the final directory separator. Don't forget to properly escape
    8181    '\' when using native Windows path syntax.
    8282  */
    83     status=Cbc_readMps(model,SAMPLEDIR "p0033.mps") ;
     83    status=Cbc_readMps(model, SAMPLEDIR "/p0033.mps") ;
    8484#else
    8585    fprintf(stderr, "Please specify the full path to an MPS file on the command line\n");
     
    397397      } else {
    398398        int numObjects = numberSets; /* cannot pass const int */
    399         Cbc_addSOS_Dense(model, numObjects, len, (const int**)which, (const double*)weights, 2);
     399        Cbc_addSOS_Dense(model, numObjects, len, (const int* const *)which, (const double*)weights, 2);
    400400      }
    401401    }
Note: See TracChangeset for help on using the changeset viewer.