home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6285 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.9 KB

  1. Path: sparky!uunet!gumby!destroyer!cs.ubc.ca!unixg.ubc.ca!ochealth
  2. From: ochealth@unixg.ubc.ca (ochealth)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: gcc (emx version) and long filenames.
  5. Date: 8 Nov 1992 21:39:52 GMT
  6. Organization: University of British Columbia, Vancouver, B.C., Canada
  7. Lines: 42
  8. Message-ID: <1dk1f8INN5dk@iskut.ucs.ubc.ca>
  9. References: <1992Nov8.045519.17076@CSD-NewsHost.Stanford.EDU>
  10. NNTP-Posting-Host: unixg.ubc.ca
  11.  
  12. In article <1992Nov8.045519.17076@CSD-NewsHost.Stanford.EDU> loekken@Xenon.Stanford.EDU (Jack Viktor Loekken) writes:
  13. :I am having trouble with gcc (emx version) and long filenames on
  14. :HPFS partition.
  15. :
  16. [ source example deleted ]
  17.  
  18. :The program prints out : 
  19. :
  20. :    Unable to open <this.file.already.exists>
  21. :
  22. :even (as the filename implies) it does exist. Also, instead
  23. :of creating the file 'this.file.should.be.created', it creates the
  24. :file 'this.fil.sho.be.cre'. The filenames that did not contain periods
  25. :were handled correctly.
  26.  
  27. Nope. Sorry, you are imagining this :-) This does not happen.
  28. Are you using EMX version 0.8e (ie the latest?) I've also got the service
  29. pack installed, but I doubt if that would change anything.
  30.  
  31. :
  32. :The program was compiled with the command line :
  33. :
  34. :gcc -o test.exe test.c
  35. :
  36. :Then I tried the following compile commandline :
  37. :
  38. :gcc -o test.exe test.c /emx/lib/io/open.c /emx/lib/sys/seterrno.c -los2
  39. :
  40. :This time the program behaved correctly. Can anybody explain this ?
  41. :I assume that the I/O functions resides in the dll's, but I haven't
  42. :found out how to rebuild these. Anybody knows ?
  43.  
  44. Maybe you have an old version of emx.dll or emxio.dll.
  45. :
  46. :Jack
  47. :
  48.  
  49. -- 
  50. ______________________________________________________________________________
  51. jpm: ochealth@unixg.ubc.ca         
  52.                             Happily using OS/2 2.0 because MS Windows isNT ___
  53.                                                       Insert VapourFeature ^^^
  54.