Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!hao!oddjob!gargoyle!ihnp4!homxb!hropus!ki4pv!codas!killer!dcs!wnp From: wnp@dcs.UUCP (Wolf N. Paul) Newsgroups: comp.sys.ibm.pc Subject: Re: MKS Toolkit - can't run Guidelines C++ .bat file the deluxe setup Message-ID: <18@dcs.UUCP> Date: 18 Feb 88 06:07:43 GMT References: <8042@condor.UUCP> Reply-To: wnp@dcs.UUCP (Wolf N. Paul) Organization: DCS, Dallas, Texas Lines: 34 Keywords: MKS Kornshell In article <8042@condor.UUCP> charlie@condor.UUCP (Charlie Havener) writes: > >I have just purchased the MKS toolkit, mainly to get the vi editor. >The vi editor works quite nicely so far. Has anyone tried using the >configuration 4 installation which runs an init program and asks you >to login to the PC? I have not been able to get that mode to work >with my Guidelines C++ compiler ( actually it is the Microsoft 5.0 >linker that gives me error messages ). The message I get from the >linker is something like L1002 Bad option. If I start up the pc How about converting the *.bat files to *.sh files? That would be the cleanest solution, and would allow you to fine-tune things to work with /bin/sh. The "Bad Option" message from the linker is related, I believe, to the fact that the MS Linker (all versions I have ever used) have '/' hardcoded as the option character, and anytime '/' is used in a pathname, the linker hiccups. I suspect that one of your environment variables (LIB, INCLUDE, maybe TMP or TEMP, don't know for sure) which the Linker looks at, uses '/' as directory separators. I simply typed pathnames in environment variables used by the linker as "\\dir\\file" rather than "/dir/file". You need to double up the backslash since the MKS sh will swallow the first backslash, like UNIX sh. There are a few other DOS commands which have the same problem. MS provided a way to set the switch character for command.com, and then hardcoded it into some of the utilities. Shows real smarts and consistency on the part of their programmers! -- Wolf N. Paul Phone: (214) 306-9101 (h) (214) 404-8077 (w) 3387 Sam Rayburn Run UUCP: ihnp4!killer!{dcs, doulos}!wnp Carrollton, TX 75007 INTERNET: wnp@dcs.UUCP ESL: 62832882 Pat Robertson does NOT speak for all evangelical Christians--not for me, anyway!