[CoinUtils-tickets] [COIN-OR Common Utilities] #49: mixed slash and backslash in CoinFileIO

COIN-OR Common Utilities coin-trac at coin-or.org
Tue Apr 1 21:30:03 EDT 2008


#49: mixed slash and backslash in CoinFileIO
---------------------+------------------------------------------------------
  Reporter:  stefan  |      Owner:     
      Type:  defect  |     Status:  new
  Priority:  minor   |    Version:     
Resolution:          |   Keywords:     
---------------------+------------------------------------------------------
Comment (by ladanyi):

 Hi Stefan,

 Could you check that whether things work OK if you change the lines
 {{{
 mpsDir = "../../Data/Sample/";
 testDir = "CglTestData/";
 }}}
 to
 {{{
 const char dirsep =  CoinFindDirSeparator();
 if (dirsep == '/') {
   mpsDir = "../../Data/Sample/";
   testDir = "CglTestData/";
 } else {
   mpsDir = "..\..\Data\Sample\";
   testDir = "CglTestData\";
 }
 }}}
 in the main() in Cgl/test/unitTest.cpp?

 Thanks,
 --Laci

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/49#comment:1>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list