LINK Help (linker.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
/ONERROR Option
                                             Up Contents Index Back
─────LINK───────────────────────────────────────────────────────────────────
 
     Syntax:  /ON[ERROR]:N[OEXE]
 
     The /ONERROR option tells LINK what to do if an error occurs. By
     default, if certain errors occur, LINK writes an executable file
     to disk and overwrites any existing file having the same name. The
     resulting executable file has the error bit set in its header.
     Specify /ONERROR:NOEXE to prevent such a file from being written
     to disk and preserve any existing file having the same name. The
     /ONERROR option can be useful in makefiles.
                                    -♦-