Path: chuka.playstation.co.uk!news From: "JohnT" Newsgroups: scee.yaroze.problems.pc,scee.yaroze.programming.gnu_compiler Subject: Re: DOS filename problem Date: Tue, 31 Mar 1998 09:58:53 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 68 Message-ID: <6fqav0$6ne21@chuka.playstation.co.uk> References: <6fo5f0$6ne12@chuka.playstation.co.uk> NNTP-Posting-Host: 194.75.167.131 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: chuka.playstation.co.uk scee.yaroze.problems.pc:71 scee.yaroze.programming.gnu_compiler:187 You don't have to rename the files but you will have to edit the makefile. Here is what you do... Where you have a long filename or directory name just edit it and shorten it to the first 6 characters, remove any spaces. Then add ~ followed by a number. The tricky bit is the number! Usually it will be 1, but if there has been an occurrence of the first 6 characters before then it will be 2, 3 etc. so making it unique. You will need to exit to DOS and do a directory listing to find out the numbers. Best to pipe the directory listing to a text file (E.G. DIR >MYDIR.TXT) so you can use that as a reference in Windows. This will even work for programs that do recognise long filenames because when Windows looks for a file or directory it will check both the long and short versions on the disk. JohnT ------------------------------------------------ Contact me at http://wwp.mirabilis.com/9461567 Send e-mail to johnt@nettech.demon.co.uk Visit my web site at www.coco.net.uk/johnt ------------------------------------------------ n.atkinson@cs.ucl.ac.uk wrote in message <6fo5f0$6ne12@chuka.playstation.co.uk>... >Hi all > >I am desperately trying to get my final year project sorted... > >I have been using Codewarrior for some time, but I am trying to use the GNU >c compiler now, as I have not been able to get codewarrior to deal with GNU >makefiles. > >Now I have a problem with gcc not recognising long filenames (under both NT >and 95). Does anyone have a solution to this or at least know where I can >get one? > >Altering the filenames is not a possibility, as i am trying to build the >Java source tree (lots and lots of files!). > >please reply to my email address > >TIA > >Nigel Atkinson >n.atkinson@cs.ucl.ac.uk > > > > > > > > > > > > > > > > > > > >