home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vms / 14470 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.7 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!ncar!noao!arizona!naucse!nauvax.ucc.nau.edu!acm
  2. From: acm@nauvax.ucc.nau.edu
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Help with local command for C link
  5. Message-ID: <2SEP92.18273146@nauvax.ucc.nau.edu>
  6. Date: 2 Sep 92 18:27:31 GMT
  7. Sender: news@naucse.cse.nau.edu
  8. Organization: Northern Arizona University
  9. Lines: 33
  10. Nntp-Posting-Host: nauvax.ucc.nau.edu
  11.  
  12. In a previous article, adrian@mti.mti.com (Adrian McCarthy) wrote:
  13. >In article <1992Aug20.202036.7251@sarah.albany.edu> sysbrc@loki.albany.edu (Brian Cuttler) writes:
  14. >>... In your case you can just change the order of the
  15. >>parameters to link ie:
  16. >>
  17. >>$ link :== link/nomap your_directory:options/opt,
  18. >>$ link myfile
  19. >Except that this causes the executable to be options.exe rather than myfile.exe
  20. >as expected.
  21. >Aid.  (adrian@lexcel.com)
  22.  
  23.    Here at Norhtern Arizona University we approached this problem from a 
  24. different angle.  Instead of using DCL .COM files we wrote a wrapper program
  25. that appends the appropriate string to include a C linking options file to
  26. the end of the original command line.  Then the "fixed" command line is passed
  27. to the real LINK command.
  28.    This fixes problems that DCL hacks introduce such as trying to get the
  29. following command to link the correct files and produce to correct .EXE
  30.  
  31.   $ LINK /debug PROG1,SUB /EXE=PJ2,SUB2/NOSYSSHR,SYS$SYSTEM:SYS /STB/MAP /FULL
  32.  
  33.    A DCL command file that can correctly parse out the above line or similar
  34. ones would indeed be a very creative work of art.
  35.  
  36.    Our wrapper program is written in VAXC and is around 100 lines with
  37. comments.  I can post the source and the documentation if anyone is interested.
  38.  
  39.    Hunter, would you like a copy for your VMS File server ??
  40.  
  41. Tony McCracken
  42. ACM@nauvax.ucc.nau.edu
  43.