Ignore:
Timestamp:
Dec 8, 2010 2:28:52 PM (9 years ago)
Author:
lou
Message:

Make Visual Studio v9 build work again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/sample2.cpp

    r1468 r1549  
    7373  // Read in model using argv[1]
    7474  // and assert that it is a clean model
    75   const char dirsep =  CoinFindDirSeparator();
     75  std::string dirsep(1,CoinFindDirSeparator());
    7676  std::string mpsFileName;
    77 #if defined(SAMPLEDIR)
    78   mpsFileName = SAMPLEDIR "/p0033.mps";
    79 #else
     77# if defined(SAMPLEDIR)
     78  mpsFileName = SAMPLEDIR ;
     79  mpsFileName += dirsep+"p0033.mps";
     80# else
    8081  if (argc < 2) {
    8182    fprintf(stderr, "Do not know where to find sample MPS files.\n");
    8283    exit(1);
    8384  }
    84 #endif
     85# endif
    8586  if (argc>=2) mpsFileName = argv[1];
    8687  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
Note: See TracChangeset for help on using the changeset viewer.