Xref: news2.mv.net comp.os.msdos.djgpp:7702 From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: help Date: Tue, 20 Aug 1996 20:38:53 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 44 Message-ID: <321A84CD.A87@cs.com> References: <3218712F DOT 2AE5 AT atitech DOT com> NNTP-Posting-Host: ppp211.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: rossm AT atitech DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Rostislav Muchnik wrote: > > Hi. > > I tried to compile one file from the program that was previously > compiled with WATCOM compiler, but it gives me strange error > > cc1.exe: exusml.c.loop: No such file or directory (ENOENT) ^^^^^ That error means that the compiler couldn't find the file 'exusm1.c.loop'; it looks like something about the way you compile your program is making it reference this filename, which is illegal under DOS. Are you running DJGPP from Win95? If so, then in order to get it to recognize Win95 long filenames, you must type the following at the DOS command line: set LFN=Y You can put this in your autoexec.bat if you want it to be the default behavior. Try this and see if your program compiles. > gcc -c /gtdev/dos/ragedos/samples/common/exusml.c -dDOS_BUILD > -I/gtdev/common/inc -I/gtdev/dos/inc -I/gtdev/dos/ragedos/samples/common > -I/gtdev/dos/inc/interal -I../../../../common/inc -I/WATCOM/h -o > exusml.o Also, are you using Make to compile, or are you typing that command from the DOS command line or a batch file? If either of the latter is the case, then the command line is probably being truncated by DOS, causing gcc to miss quite a few of those '-I' statements. As a final tip, you don't need to specify both '-c' and '-o exusm1.o' -- just '-c' is the preferred method of instructing gcc to only output object code. Doing both is not only redundant, but could conceivably get you in trouble with non-Unixy compilers. (For example, BCC and TCC output .OBJ files, and wouldn't know what to do with '-o exusm1.o'.) John -- ---------------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Proud owner of what might one day | Plan: To make Bill Gates suffer | | be a spectacular MUD... | Tagline: | ----------------------------------------------------------------------------