Date: Thu, 17 Mar 94 14:03:25 EST From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: dea3 AT depinfo DOT u-bourgogne DOT fr Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: UNIX-tools compatibility using MSDOS Reply-To: babcock AT cfa DOT harvard DOT edu > I get the DJGPP package containing DJDEV110.ZIP and other files > but I can't use the Flex or the Bison because the file names are given > with UNIX format using '/'. I don't use Flex or Bison, but I will point out that it is only on the command line that DOS insists on using backslash as the directory separater. At other levels, either style slash will work. > #ifdef _UNIX_ > char *hairy_bison [] = "bison.hairy"; > #else /* not UNIX, so MSDOS */ > char *hairy_bison [] = "c:\gnu\bin\bison\bison.hai"; > #endif Minor complaint here is that there are other possibilities besides UNIX and MSDOS, major complaint is that building paths into an executable is horribly unportable. If I had bison online, it would probably be in something like d:\compiler\djgpp\bison. Someone running off a network certainly wouldn't use C:. Also, didn't you really mean to write char *hairy_bison [] = "c:\\gnu\\bin\\bison\\bison.hai";