[BuildTools] Drive letters for Windows

Kipp Martin kipp.martin at chicagogsb.edu
Thu May 17 17:45:30 EDT 2007


Hi Lou:
> 
> 	I'm not enough of a Windows expert to know, so I'm asking: Is this a 
> common problem that should be fixed down in BuildTools, or are we looking at 
> separate problems that deserve separate fixes in cbc and dylp?
> 	

I am wondering if the problem is not in OsiDylpSoverInterface where you 
have the code:

#ifndef DYLP_ERRMSGDIR
/*
   This is the correct path to find dy_errmsgs.txt, assuming the default
   COIN directory structure for Osi and Dylp, to wit:
     COIN
       Osi
	src
	  OsiDylp
       DyLP
	src
	  Dylp
*/
# define DYLP_ERRMSGDIR "../../../DyLP/src/Dylp"
#endif

which is not too Windows friendly. You also have

string errfile = string(DYLP_ERRMSGDIR)+string("/dy_errmsgs.txt") ;

I don't know if you want to try something like


const char dirsep =  CoinFindDirSeparator();
std::string dataDir;
dataDir = dirsep == '/' ? "../data/" : "..\\data\\";

Strange thing is, I tried setting the environment variable 
DYLP_ERRMSGDIR and it didn't pick it up and use the correct path.

Cheers,

-- 
Kipp Martin
Professor of Operations Research
	and Computing Technology
University of Chicago
Graduate School of Business
5807 South Woodlawn Avenue
Chicago IL 60637
773-702-7456
http://gsbkip.chicagogsb.edu
http://www.coin-or.org/


More information about the BuildTools mailing list