LINK Options Can Be Specified in AUTOEXEC.BAT with SET LINK= (41583)



The information in this article applies to:

  • Microsoft QuickBASIC 3.0
  • Microsoft QuickBASIC 4.0
  • Microsoft QuickBASIC 4.0b
  • Microsoft QuickBASIC 4.5
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0

This article was previously published under Q41583

SUMMARY

LINK options can be set in your AUTOEXEC.BAT file (or in the MS-DOS command line) as an environment variable with the statement "SET LINK=options". The following is an example
   SET LINK=/NOE /NOI /E
				
where /NOE is NOEXTDICTIONARY, /NOI is NOIGNORECASE, /E is EXEPACK.

This behavior can cause some unexpected errors to occur because you might forget what LINK switches are SET in your AUTOEXEC.BAT file.

MORE INFORMATION

If the /E [XEPACK] switch is SET within your AUTOEXEC.BAT FILE and you attempt to create a Quick library with the /Q [UICKLIB] switch, the following linker error is generated:
   L1003    /QUICKLIB, /EXEPACK incompatible
				
To make Quick libraries with /E [XEPACK] set as a LINK option, use /NOP [ACKCODE] to turn /E [XEPACK] off.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB41583