PRB: Cannot Build in PWB with SHARE.EXE and OutputTo=NUL
ID: Q88508
7.00 | 7.00
MS-DOS | WINDOWS
kbtool kberrmsg kbbuglist kbprb
The information in this article applies to:
- Microsoft Programmer's WorkBench for MS-DOS, version 2.0
SYMPTOMS
Microsoft Programmer's WorkBench (PWB) version 2.0 supplied with Microsoft
C/C++ version 7.0 may generate the following error messages when building a
project:
NUL - Permission Denied
cannot compile
These errors will appear in PWB message boxes.
CAUSE
The following conditions will cause PWB to display the messages:
- SHARE.EXE has been executed.
- "OutputTo=NUL" has been added to the SYSTEM.INI file under
the [Debug] section.
- An application is being built in PWB.
PWB is using the NUL device that is already in use by Windows. You can see
similar behavior simply by typing "ECHO > NUL" at an MS-DOS command prompt
with SHARE.EXE loaded and "OutputTo=NUL" set.
RESOLUTION
To work around this problem, do one of the following:
- Remove SHARE.EXE.
-or-
- Remove the "OutputTo=NUL" statement and only insert this when
running the Windows debug kernel. You can append a couple
statements to N2D.BAT and D2N.BAT to change SYSTEM.INI files;
one with the [Debug] section and one without.
-or-
- Build the project outside of PWB.
Additional reference words: 2.00 7.00 buglist7.00
KBCategory: kbtool kberrmsg kbbuglist kbprb
KBSubcategory: PwbIss
Keywords : kb16bitonly
Last Reviewed: July 18, 1997